Session #1
- Tensors - Data Structures of Deep Learning
- DL framework and scientific computing package
- tensor nd array
- numpy goto package for nd array
- Interoperable with numpy
- Torch based on Lua Programming Language
- Now maintained by Facebook
- Pytorch packages
- torch - Top level package
- torch.nn - Build neural networks
- torch.autograd - Differentiable tensor operations - Derivative Calculations
- torch.nn.functional - loss, activation and convolution functions
- torch.optim - Optimization operations like SGD and Adam
- torchvision - image transformations of computer vision
- torch.utils - Dealing with Datasets
- Preferred framework for research
- For computing derivatives, computation graph
- pytorch uses dynamic computation graph
- Anaconda python package manager
- conda install Pytorch -c Pytorch
- pip install torchvision
- cuda 9.0 is stable
- install pytorch and torchvision
- conda list pytorch
- Data + Knowledge + Architecture = Enormous Software
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
#untested code | |
# conda install Pytorch -c Pytorch | |
# pip install torchvision | |
# conda list pytorch | |
import torch | |
print(torch.__version__) | |
print(torch.cuda.is_available()) | |
print(torch.version.cuda) | |
t = torch.tensor([1,2,3]) | |
print(t) | |
t = t.cuda() | |
print(t) |
- GPU - Graphics Processing Unit
- Good at handling Specialized Computing
- Parallel Computing
- Smaller computation carried out simultaneously
- NN are embarrassingly Parallel
- Optimize across the entire stack
- Cuda toolkit
- GPU + Libraries
- Supported nvidia gpu
- Much of Pytorch written in Python
- Move critical functions to c/c++
- pytorch supports multiple gpus
- GPU (CUDA - cuDNN) - Pytorch on top of Cuda
- Technology built on top of layers
- Paper (GPGPU Computing)
Happy Mastering DL!!!
No comments:
Post a Comment