tensorflow / tensorflow/privacy
import tensorflow_privacy -> AttributeError
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2k
- Forks
- 477
- Avg merge
- 22h 12m
- Merged PRs (30d)
- 1
Description
Great job
docker run -it --rm --runtime=nvidia tensorflow/tensorflow:latest-gpu-jupyter /bin/bash
pip install tensorflow-privacy
python
>>> import tensorflow_privacy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tf/privacy/tensorflow_privacy/__init__.py", line 26, in <module>
from tensorflow_privacy import v1
File "/tf/privacy/tensorflow_privacy/v1/__init__.py", line 28, in <module>
from tensorflow_privacy.privacy.estimators.v1.dnn import DNNClassifier as DNNClassifierV1
File "/tf/privacy/tensorflow_privacy/privacy/estimators/v1/dnn.py", line 19, in <module>
from tensorflow_privacy.privacy.estimators.v1 import head as head_lib
File "/tf/privacy/tensorflow_privacy/privacy/estimators/v1/head.py", line 20, in <module>
from tensorflow_estimator.python.estimator import model_fn
File "/usr/local/lib/python3.11/dist-packages/tensorflow_estimator/python/estimator/model_fn.py", line 29, in <module>
from tensorflow_estimator.python.estimator.mode_keys import ModeKeys
File "/usr/local/lib/python3.11/dist-packages/tensorflow_estimator/python/estimator/mode_keys.py", line 24, in <module>
estimator_export('estimator.ModeKeys')(ModeKeys)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/tensorflow_estimator/python/estimator/estimator_export.py", line 63, in __init__
super().__init__(*args, api_name=tf_export.ESTIMATOR_API_NAME, v1=v1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'tensorflow.python.util.tf_export' has no attribute 'ESTIMATOR_API_NAME'
Great job
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the listed TensorFlow GPU Docker command, pip install tensorflow-privacy, and import tensorflow_privacy. Start with tensorflow_privacy/init.py and tensorflow_privacy/v1/init.py, then follow the traceback through privacy/estimators/v1/head.py and tensorflow_estimator's model_fn.py and mode_keys.py. Done means the import completes without the reported AttributeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100