-
-
Save Dexdev08/576ff5a701878f18c42ec6ee49c85233 to your computer and use it in GitHub Desktop.
1_Introduction_helloworld Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python 1_Introduction/helloworld.py | |
OpenCL platform: Apple | |
OpenCL device: HD Graphics 5000 | |
I tensorflow/core/common_runtime/gpu/gpu_device.cc:989] Found device 0 with properties: | |
name: HD Graphics 5000 | |
major: -1 minor: -1 memoryClockRate (GHz) 1200 | |
pciBusID 0000.0000 | |
Total memory: 1.50GiB | |
Free memory: 384.00MiB | |
I tensorflow/core/common_runtime/gpu/gpu_device.cc:877] cannot enable peer access from device ordinal 0 to device ordinal 0 | |
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1011] DMA: 0 | |
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1021] 0: N | |
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1083] Creating TensorFlow device (/gpu:0) -> (device: 0, name: HD Graphics 5000, pci bus id: 0000.0000) | |
cl_driver DeviceAllocate 192937984 | |
Traceback (most recent call last): | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 972, in _do_call | |
return fn(*args) | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 950, in _run_fn | |
self._extend_graph() | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 999, in _extend_graph | |
self._session, graph_def.SerializeToString(), status) | |
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 89, in __exit__ | |
next(self.gen) | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/framework/errors.py", line 463, in raise_exception_on_not_ok_status | |
pywrap_tensorflow.TF_GetCode(status)) | |
tensorflow.python.framework.errors.InvalidArgumentError: Cannot assign a device to node 'Const': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available. | |
[[Node: Const = Const[dtype=DT_STRING, value=Tensor<type: string shape: [] values: Hello, TensorFlow!>, _device="/device:GPU:0"]()]] | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "1_Introduction/helloworld.py", line 29, in <module> | |
print(sess.run(hello)) | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 717, in run | |
run_metadata_ptr) | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 915, in _run | |
feed_dict_string, options, run_metadata) | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 965, in _do_run | |
target_list, options, run_metadata) | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 985, in _do_call | |
raise type(e)(node_def, op, message) | |
tensorflow.python.framework.errors.InvalidArgumentError: Cannot assign a device to node 'Const': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available. | |
[[Node: Const = Const[dtype=DT_STRING, value=Tensor<type: string shape: [] values: Hello, TensorFlow!>, _device="/device:GPU:0"]()]] | |
Caused by op 'Const', defined at: | |
File "1_Introduction/helloworld.py", line 23, in <module> | |
hello = tf.constant('Hello, TensorFlow!') | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py", line 167, in constant | |
attrs={"value": tensor_value, "dtype": dtype_value}, name=name).outputs[0] | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2388, in create_op | |
original_op=self._default_original_op, op_def=op_def) | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1300, in __init__ | |
self._traceback = _extract_stack() | |
InvalidArgumentError (see above for traceback): Cannot assign a device to node 'Const': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available. | |
[[Node: Const = Const[dtype=DT_STRING, value=Tensor<type: string shape: [] values: Hello, TensorFlow!>, _device="/device:GPU:0"]()]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment