google-deepmind / google-deepmind/deepmind-research
tensorflow has no attribute GraphKeys
- Dominant language
- Jupyter Notebook
- Stars
- 15.2k
- Forks
- 2.9k
- PR merge metrics
- No merged PRs in 30d
Description
Hi, not urgent, but I am attempting to reproduce the results by running the 'run.sh' script and hitting the error 'tensorflow' has no attribute 'GraphKeys'.
I think this was handled in the quick_eval_cifar.py tensorflow.compat.v1 import but not in the clever_hans scripts from which the error originates. Not sure how to best proceed. Traceback as follows. Any help would be appreciated.
Traceback (most recent call last):
File "/home/jpfrancis/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/jpfrancis/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/jpfrancis/Development/deepmind-research/unsupervised_adversarial_training/quick_eval_cifar.py", line 30, in
from cleverhans import attacks
File "/home/jpfrancis/anaconda3/lib/python3.7/site-packages/cleverhans/attacks/__init__.py", line 9, in
from cleverhans.attacks_tf import SPSAAdam, margin_logit_loss, TensorAdam
File "/home/jpfrancis/anaconda3/lib/python3.7/site-packages/cleverhans/attacks_tf.py", line 17, in
from cleverhans import utils_tf
File "/home/jpfrancis/anaconda3/lib/python3.7/site-packages/cleverhans/utils_tf.py", line 341, in
loss_collection=tf.GraphKeys.REGULARIZATION_LOSSES):
AttributeError: module 'tensorflow' has no attribute 'GraphKeys'
Contributor guide
Assessment
This issue has not been assessed yet.