I have install the pre-built wheels in my MacBook Pro(10.12.6) and when I tried
python word2vec_basic.py in tf-coriander/tensorflow/examples/tutorials/word2vec, I got below error:
(tensorflow.cl) QiangdeMacBook-Pro:word2vec elife$ python word2vec_basic.py
Found and verified text8.zip
Data size 17005207
Most common words (+UNK) [['UNK', 418391], ('the', 1061396), ('of', 593677), ('and', 416629), ('one', 411764)]
Sample data [5234, 3081, 12, 6, 195, 2, 3134, 46, 59, 156] ['anarchism', 'originated', 'as', 'a', 'term', 'of', 'abuse', 'first', 'used', 'against']
3081 originated -> 5234 anarchism
3081 originated -> 12 as
12 as -> 6 a
12 as -> 3081 originated
6 a -> 195 term
6 a -> 12 as
195 term -> 6 a
195 term -> 2 of
OpenCL platform: Apple
OpenCL device: Iris Pro
I tensorflow/core/common_runtime/gpu/gpu_device.cc:989] Found device 0 with properties:
name: Iris Pro
major: -1 minor: -1 memoryClockRate (GHz) 1200
pciBusID 0000.0000
Total memory: 1.50GiB
Free memory: 384.00MiB
W tensorflow/stream_executor/cl/cl_driver.cc:587] creating context when one is currently active; existing: `?̚?
OpenCL platform: Apple
OpenCL device: AMD Radeon R9 M370X Compute Engine
I tensorflow/core/common_runtime/gpu/gpu_device.cc:989] Found device 1 with properties:
name: AMD Radeon R9 M370X Compute Engine
major: -1 minor: -1 memoryClockRate (GHz) 800
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:877] cannot enable peer access from device ordinal 0 to device ordinal 1
I tensorflow/core/common_runtime/gpu/gpu_device.cc:877] cannot enable peer access from device ordinal 1 to device ordinal 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:877] cannot enable peer access from device ordinal 1 to device ordinal 1
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1011] DMA: 0 1
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1021] 0: N N
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1021] 1: N N
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1083] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Iris Pro, pci bus id: 0000.0000)
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1083] Creating TensorFlow device (/gpu:1) -> (device: 1, name: AMD Radeon R9 M370X Compute Engine, pci bus id: 0000.0000)
cl_driver DeviceAllocate 192937984
cl_driver DeviceAllocate 192937984
Initialized
Average loss at step 0 : 249.100921631
internal build log:
I have install the pre-built wheels in my MacBook Pro(10.12.6) and when I tried python word2vec_basic.py in tf-coriander/tensorflow/examples/tutorials/word2vec, I got below error:
(tensorflow.cl) QiangdeMacBook-Pro:word2vec elife$ python word2vec_basic.py Found and verified text8.zip Data size 17005207 Most common words (+UNK) [['UNK', 418391], ('the', 1061396), ('of', 593677), ('and', 416629), ('one', 411764)] Sample data [5234, 3081, 12, 6, 195, 2, 3134, 46, 59, 156] ['anarchism', 'originated', 'as', 'a', 'term', 'of', 'abuse', 'first', 'used', 'against'] 3081 originated -> 5234 anarchism 3081 originated -> 12 as 12 as -> 6 a 12 as -> 3081 originated 6 a -> 195 term 6 a -> 12 as 195 term -> 6 a 195 term -> 2 of OpenCL platform: Apple OpenCL device: Iris Pro I tensorflow/core/common_runtime/gpu/gpu_device.cc:989] Found device 0 with properties: name: Iris Pro major: -1 minor: -1 memoryClockRate (GHz) 1200 pciBusID 0000.0000 Total memory: 1.50GiB Free memory: 384.00MiB W tensorflow/stream_executor/cl/cl_driver.cc:587] creating context when one is currently active; existing: `?̚? OpenCL platform: Apple OpenCL device: AMD Radeon R9 M370X Compute Engine I tensorflow/core/common_runtime/gpu/gpu_device.cc:989] Found device 1 with properties: name: AMD Radeon R9 M370X Compute Engine major: -1 minor: -1 memoryClockRate (GHz) 800 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:877] cannot enable peer access from device ordinal 0 to device ordinal 1 I tensorflow/core/common_runtime/gpu/gpu_device.cc:877] cannot enable peer access from device ordinal 1 to device ordinal 0 I tensorflow/core/common_runtime/gpu/gpu_device.cc:877] cannot enable peer access from device ordinal 1 to device ordinal 1 I tensorflow/core/common_runtime/gpu/gpu_device.cc:1011] DMA: 0 1 I tensorflow/core/common_runtime/gpu/gpu_device.cc:1021] 0: N N I tensorflow/core/common_runtime/gpu/gpu_device.cc:1021] 1: N N I tensorflow/core/common_runtime/gpu/gpu_device.cc:1083] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Iris Pro, pci bus id: 0000.0000) I tensorflow/core/common_runtime/gpu/gpu_device.cc:1083] Creating TensorFlow device (/gpu:1) -> (device: 1, name: AMD Radeon R9 M370X Compute Engine, pci bus id: 0000.0000) cl_driver DeviceAllocate 192937984 cl_driver DeviceAllocate 192937984 Initialized Average loss at step 0 : 249.100921631 internal build log: