-
Notifications
You must be signed in to change notification settings - Fork 630
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
Comments
https://www.tensorflow.org/versions/master/performance/performance_models
mentions this:
*Note:* tf_cnn_benchmarks.py uses the config force_gpu_compatible, which
was introduced after TensorFlow 1.1. Until TensorFlow 1.2 is released
building from source is advised.
…On Tue, May 30, 2017 at 9:26 AM, Cody Hao Yu ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQw4wRkZEPenNj5A6UXszK6e4uNy--7Sks5r_ENGgaJpZM4NqiXO>
.
|
You can also safely comment out that line to run on TF 1.0 (might work) and TF 1.1 (will work) |
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
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.
The text was updated successfully, but these errors were encountered: