Created
June 24, 2017 15:04
-
-
Save Dexdev08/d84fb4c4daa853e994493b8273ba3fcc to your computer and use it in GitHub Desktop.
3_neural_networks_convolutional_network_COCL_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
export COCL_OFFSETS_32BIT=1 | |
(env3) Aironin:examples dexterang$ python 3_NeuralNetworks/convolutional_network.py | |
Extracting /tmp/data/train-images-idx3-ubyte.gz | |
Extracting /tmp/data/train-labels-idx1-ubyte.gz | |
Extracting /tmp/data/t10k-images-idx3-ubyte.gz | |
Extracting /tmp/data/t10k-labels-idx1-ubyte.gz | |
COCL_OFFSETS_32BIT enabled | |
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 'Conv2D': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available. | |
[[Node: Conv2D = Conv2D[T=DT_FLOAT, data_format="NHWC", padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/device:GPU:0"](Reshape, Variable/read)]] | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "3_NeuralNetworks/convolutional_network.py", line 112, in <module> | |
sess.run(init) | |
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 'Conv2D': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available. | |
[[Node: Conv2D = Conv2D[T=DT_FLOAT, data_format="NHWC", padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/device:GPU:0"](Reshape, Variable/read)]] | |
Caused by op 'Conv2D', defined at: | |
File "3_NeuralNetworks/convolutional_network.py", line 97, in <module> | |
pred = conv_net(x, weights, biases, keep_prob) | |
File "3_NeuralNetworks/convolutional_network.py", line 56, in conv_net | |
conv1 = conv2d(x, weights['wc1'], biases['bc1']) | |
File "3_NeuralNetworks/convolutional_network.py", line 39, in conv2d | |
x = tf.nn.conv2d(x, W, strides=[1, strides, strides, 1], padding='SAME') | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 394, in conv2d | |
data_format=data_format, name=name) | |
File "/Users/dexterang/projects/tf-coriander/env3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 748, in apply_op | |
op_def=op_def) | |
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 'Conv2D': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available. | |
[[Node: Conv2D = Conv2D[T=DT_FLOAT, data_format="NHWC", padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/device:GPU:0"](Reshape, Variable/read)]] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment