Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import tensorflow_privacy -> AttributeError #557

Open
zedoul opened this issue Apr 15, 2024 · 4 comments
Open

import tensorflow_privacy -> AttributeError #557

zedoul opened this issue Apr 15, 2024 · 4 comments

Comments

@zedoul
Copy link

zedoul commented Apr 15, 2024

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

@TinoJHB
Copy link

TinoJHB commented Aug 2, 2024

faciing same issue did you get the sollution

@adritatori
Copy link

Getting the same error.. !!!

@remigodet
Copy link

I have the same error, on multiple versions of tf, tf-estimator and tf-privacy

@remigodet
Copy link

For instance, this https://colab.research.google.com/github/tensorflow/privacy/blob/master/g3doc/tutorials/privacy_report.ipynb colab notebook from the TensorFlow Authors is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants