Computational Infrastructure: Sweta Agrawal
Computational Infrastructure: Sweta Agrawal
Sweta Agrawal
Slide Credits: https://xkcd.com/1838/
Frameworks!
● Quick to develop and test new ideas
● Automatically compute gradients
● Use GPUs to speed up computation
● Don’t need to know deep learning???
x = np.random.randn(N, D)
y = np.random.randn(N, D)
z = np.random.randn(N, D)
a=x*y
b=a+z
c = np.sum(b)
N, D = 3, 4
x = torch.randn(N, D)
y = torch.randn(N, D)
z = torch.randn(N, D)
a=x*y
b=a+z
c = torch.sum(b)
Forward pass
Backward pass
Forward pass
Backward pass
Update weights
Visdom Tensorboard
Pytorch Vs Tensorflow
https://github.com/Hvass-Labs/TensorFlow-Tutorials
Google Cloud Credits
No office hour today!