WSL ã«ã¦ CUDA9.0 㨠cuDNN7.0 ã®ç°å¢ãæ§ç¯ãã
ããããã¼ãï¼ï¼ã¢ã¬ã¯ãµã¹ãã«ã®è±ãã°é¢¨ã«ï¼ã WSL + Ubuntu ä¸ã« TensorFlow ç°å¢ãæ§ç¯ãã¦ã¿ã¾ãããWSL ã§ã¯ GPU èªèãããCPU æ¼ç®ã®ã¿ã®ãããä»å¾ã®ã¤ã³ã¹ãã¼ã«æ¼ç¿ã¨ãããã¨ã§ã²ã¨ã¤ã
TensorFlow ã¨é¢ä¿ãªããã©ãã¤ãå ¥ãããã¤â
sudo -H pip3 install matplotlib sudo -H pip3 install mpl_finance sudo -H pip3 install pandas sudo -H pip3 install numpy
TensorFlow ã¨é¢ä¿ãªããã©ä½æ ãå ¥ãã python ã¢ã¸ã¥ã¼ã«
sudo -H pip3 install opencv-python sudo -H pip3 install wheel sudo -H pip3 install torchvision sudo -H pip3 install torch sudo -H pip3 install six sudo -H pip3 install Pillow sudo -H pip3 install setuptools
nvidia ã®ãã©ã¤ãã¼
sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt install update sudo apt install nvidia-390 sudo apt install nvidia-utils-390
CUDA 㨠cuDNN ã®ã¤ã³ã¹ãã¼ã«ãäºåã«ãã¡ããããUbuntu 16.04 ç¨ã® RuntimeãDeveloper ã©ã¤ãã©ãªããã¦ã³ãã¼ããã¦ããã¾ãã
sudo apt install nvidia-cuda-toolkit sudo -H dpkg -i libcudnn7-dev_7.6.1.34-1+cuda9.0_amd64.deb sudo -H dpkg -i libcudnn7_7.6.1.34-1+cuda9.0_amd64.deb
TensorFlow ã®ã¤ã³ã¹ãã¼ã«ã¨ Hello world
sudo -H pip3 install tensorflow python3 -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"