Created
October 12, 2018 04:09
-
-
Save NickStrupat/b85903149cc316bc73cb00821e0b5c39 to your computer and use it in GitHub Desktop.
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
powershell -Command "Invoke-WebRequest https://repo.anaconda.com/archive/Anaconda3-5.3.0-Windows-x86_64.exe" | |
start /wait "" Anaconda3-5.3.0-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /S /D=%UserProfile%\Anaconda3 | |
cmd "/K" %UserProfile%\Anaconda3\Scripts\activate.bat %UserProfile%\Anaconda3 | |
conda update -y conda | |
conda update -y anaconda | |
conda update -y python | |
conda update -y --all | |
conda create --name tf-gpu | |
activate tf-gpu | |
conda install -y -c aaronzs tensorflow-gpu | |
conda install -y -c anaconda cudatoolkit | |
conda install -y -c anaconda cudnn | |
@echo import tensorflow as tf >> helloworld-tf-gpu.py | |
@echo hello = tf.constant('Hello, TensorFlow!') >> helloworld-tf-gpu.py | |
@echo sess = tf.Session() >> helloworld-tf-gpu.py | |
@echo print(sess.run(hello)) >> helloworld-tf-gpu.py | |
python helloworld-tf-gpu.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment