9. TENSORFLOWの導入
$ sudo pip install --upgrade
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
TensorFlowのインストール
$ pyhon
>>>import tensorflow as ts
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:102] Couldn't open CUDA library libcudnn.so. LD_LIBRARY_PATH:
/usr/local/cuda-7.5/lib64
I tensorflow/stream_executor/cuda/cuda_dnn.cc:2092] Unable to load cuDNN DSO
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcuda.so locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcurand.so locally
library libcurand.so locally Traceback (most recent call last): File "", line 1, in File
.
.
AttributeError: type object 'NewBase' has no attribute 'is_abstract‘
>>>
pythonライブラリsixのバージョンが古い
10. TENSORFLOWの導入
>>>import six
>>>print(six.__version__)
1.5.2
Sixのバージョン確認
$ sudo pip install –U six
Requirement already up-to-date: six in /usr/local/lib/python2.7/dist-packages/six-1.5.2-py2.7.egg
Cleaning up...
sixのアップグレード
バージョン(v1-5-2)が変わらなかったので別の方法を試した
$ sudo easy_install –upgrade six
>>>import six
>>>print(six.__version__)
1.10.0
11. TENSORFLOWの導入
>>> import tensorflow as tf
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcublas.so
locally
I tensorflow/stream_executor/dso_loader.cc:102] Couldn't open CUDA library libcudnn.so.
LD_LIBRARY_PATH: /usr/local/cuda-7.5/lib64
I tensorflow/stream_executor/cuda/cuda_dnn.cc:2092] Unable to load cuDNN DSO
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcufft.so
locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcuda.so
locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcurand.so
locally
>>>
Sixのバージョン確認
無事コマンドが通った
簡単なプログラムを書いてみる
21. MICROSOFT COCO
キャプション生成の結果
Two young girls on skateboards with a
beagle in the front.
There are two people standing near a
skateboard and a dog.
Two girls on skateboard are looking
toword a skateboard that does not have a
rider.
A teenage gile and boy skateboarding
beside an old building.
A teen boy and teen girl standing on
skateboard in front of a stone brick wall.