Machine Learning PyTorch Tutorial - 國立臺灣大學
Machine Learning
PyTorch Tutorial
TA (Heng-Jui Chang) 2021.03.05
Outline
Prerequisites What is PyTorch? PyTorch v.s. TensorFlow Overview of the DNN Training Procedure Tensor How to Calculate Gradient? Dataset & Dataloader torch.nn torch.optim Neural Network Training/Evaluation Saving/Loading a Neural Network More About PyTorch
Prerequisites
We assume you are already familiar with... Python3 if-else, loop, function, file IO, class, ... refs: link1, link2, link3
NumPy array & array operations ref: link
What is PyTorch?
An open source machine learning framework. A Python package that provides two high-level features:
Tensor computation (like NumPy) with strong GPU acceleration Deep neural networks built on a tape-based autograd system
PyTorch v.s. TensorFlow
Developer Interface Debug Application
PyTorch
Facebook AI Python & C++
Easier Research
TensorFlow
Google Brain Python, C++, JavaScript, Swift
Difficult (easier in 2.0) Production
Overview of the DNN Training Procedure
torch.nn torch.optim
Load Data
torch.utils.data.Dataset torch.utils.data.DataLoader
Define Neural Network
Loss Function
Training
Testing
Optimizer
Validation
Tensor
High-dimensional matrix (array)
1-D tensor
2-D tensor
3-D tensor
Tensor -- Data Type
Data type 32-bit floating point
dtype torch.float
64-bit integer (signed) torch.long
tensor torch.FloatTensor torch.LongTensor
ref:
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- numpy and torch david i inouye
- machine learning pytorch tutorial 國立臺灣大學
- operationalizing pytorch models using onnx and onnx runtime
- eleg5491 introduction to deep learning pytorchbasics tutorial
- pytorch numpy like functions cheat sheet
- pytorch tutorial for beginner edu
- array to tensor pytorch
- nlp university of michigan
- automatic differentiation in pytorch github pages
- what is cupy nvidia
Related searches
- machine learning audiobook
- matlab machine learning pdf
- probability for machine learning pdf
- machine learning testing
- ai vs machine learning vs deep learning
- machine learning vs deep learning
- machine learning and artificial intelligence
- machine learning vs ai vs deep learning
- difference between machine learning and ai
- machine learning neural networks
- machine learning vs neural network
- machine learning backpropagation