deepmind-research
deepmind-research copied to clipboard
tensorflow has no attribute GraphKeys
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
Hi @JPFrancis, Which version of tensorflow are you using?
Hey, thanks for the reply. This is tensorflow-gpu 1.8.0. Should I upgrade?
Apologies, I was on a company account. The above stands. Thanks
Hi @JPFrancis @diegolascasas , I believe that tf.compat.v1 (tf version 1) is already present in the 'quick_eval_cifar.py' script. Cleverhans version 3.1.0 supports TF1x and tf version should be >=1.15 . Cleverhans version 4.0.0 supports only tf 2.0 but some parts require changes to make it compatible with tf2.0 . Also python version should not exceed 3.7 as tf 1x supports till python 3.7 .