gcloud compute ssh instance-0 --ssh-flag="-L 8888:localhost:8888"
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
# Implementation of a rotating buffer on the GPU of size 2. | |
import threading | |
import tensorflow as tf | |
from tensorflow.python.client import timeline | |
import numpy as np | |
import time | |
params = { | |
'batch_size': 128, | |
'seg_len': 4000, |
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
# cuda 9 | |
wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda-repo-ubuntu1704-9-0-local_9.0.176-1_amd64-deb | |
sudo dpkg -i cuda-repo-ubuntu1704-9-0-local_9.0.176-1_amd64-deb | |
sudo apt-key adv --fetch-keys \ | |
http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub | |
sudo apt-get update | |
sudo apt-get install cuda-9-0 | |
# cuDNN 7.05 |