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

Attribute error: Assignment not allowed (no field "force_gpu_compatible" in protocol message object) #23

Closed
comaniac opened this issue May 30, 2017 · 2 comments

Comments

@comaniac
Copy link

I would like to use the benchmark on CPU to realize the baseline performance. However, this error showed up when generating the model. This is the command I used:

python tf_cnn_benchmarks.py --device cpu --train_dir /path/to/my/dir --eval-dir /path/to/my/dir --model alexnet

and here is the traceback:

Traceback (most recent call last):
File "tf_cnn_benchmarks.py", line 1333, in
tf.app.run()
File "/usr/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "tf_cnn_benchmarks.py", line 1329, in main
bench.run()
File "tf_cnn_benchmarks.py", line 879, in run
self._benchmark_cnn()
File "tf_cnn_benchmarks.py", line 969, in _benchmark_cnn
config=create_config_proto(),
File "tf_cnn_benchmarks.py", line 627, in create_config_proto
config.gpu_options.force_gpu_compatible = FLAGS.force_gpu_compatible

It seems like my TensorFlow configuration doesn't have this field. Would it be caused by incompatible TensorFlow version? I directly cloned both the TensorFlow and benchmarks from GitHub.

@cwhipkey
Copy link
Contributor

cwhipkey commented May 31, 2017 via email

@tfboyd
Copy link
Member

tfboyd commented Jun 1, 2017

You can also safely comment out that line to run on TF 1.0 (might work) and TF 1.1 (will work)

@tfboyd tfboyd closed this as completed Jun 1, 2017
freedomtan pushed a commit to freedomtan/benchmarks that referenced this issue Apr 18, 2018
Merge internal changes into public repository (change 167780120)
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

3 participants