PyTorch Framework
A PyTorch Framework is a Python tensor-based deep learning framework.
- Context:
- It can be related to a Torch Platform.
- It can provide a Tensor library (like NumPy) with strong GPU support.
- ...
- Example(s):
- PyTorch v1.0.0 (~2018-12-07). [1]
- PyTorch v0.3.1 (~2018-02-11). [2]
- PyTorch v0.3.0 (~2017-12-03). [3]
- PyTorch v0.2.0 (~2017-08-03).
- PyTorch v0.1.5 (~2016-11-18).
https://github.com/pytorch/pytorch/releases
.- ...
- Counter-Example(s):
- See: PyText, Python Package.
References
2018a
- "PyTorch developer ecosystem expands, 1.0 stable release now available."
- … Researchers and engineers can now readily take full advantage of the open source deep learning framework’s new features, including a hybrid front end for transitioning seamlessly between eager and graph execution modes, revamped distributed training, a pure C++ front end for high-performance research, and deep integration with cloud platforms. ...
... PyTorch has been applied to use cases from image recognition to machine translation. As a result, we’ve seen a wide variety of projects from the developer community that extend and support development. A few of these projects include:
- Horovod — a distributed training framework that makes it easy for developers to take a single-GPU program and quickly train it on multiple GPUs.
- PyTorch Geometry – a geometric computer vision library for PyTorch that provides a set of routines and differentiable modules.
- TensorBoardX – a module for logging PyTorch models to TensorBoard, allowing developers to use the visualization tool for model training.
- … Researchers and engineers can now readily take full advantage of the open source deep learning framework’s new features, including a hybrid front end for transitioning seamlessly between eager and graph execution modes, revamped distributed training, a pure C++ front end for high-performance research, and deep integration with cloud platforms. ...
2018b
- (Wikipedia, 2018) ⇒ https://en.wikipedia.org/wiki/PyTorch Retrieved:2018-1-22.
- PyTorch is an open source machine learning library for Python, used for applications such as natural language processing. It is primarily developed by Facebook's artificial-intelligence research group, and Uber's “Pyro" software for probabilistic programming is built upon it.
2018c
Software | Creator | Software licenseTemplate:Efn | Open source | Platform | Written in | Interface | OpenMP support | OpenCL support | CUDA support | Automatic differentiation[1] | Has pretrained models | Recurrent nets | Convolutional nets | RBM/DBNs | Parallel execution (multi node) |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PyTorch | ... | BSD license | Yes | Linux, macOS | Python, C, CUDA | Python | Yes | Yes | Yes | Yes | Yes | Yes |
2018d
- https://github.com/pytorch/pytorch/blob/v0.3.1/README.md
- QUOTE: At a granular level, PyTorch is a library that consists of the following components:
torch | a Tensor library like NumPy, with strong GPU support |
torch.autograd | a tape-based automatic differentiation library that supports all differentiable Tensor operations in torch |
torch.nn | a neural networks library deeply integrated with autograd designed for maximum flexibility |
torch.multiprocessing | Python multiprocessing, but with magical memory sharing of torch Tensors across processes. Useful for data loading and Hogwild training. |
torch.utils | DataLoader, Trainer and other utility functions for convenience |
torch.legacy(.nn/.optim) | legacy code that has been ported over from torch for backward compatibility reasons |
Usually one uses PyTorch either as:
- a replacement for NumPy to use the power of GPUs.
- a deep learning research platform that provides maximum flexibility and speed
If you use NumPy, then you have used Tensors (a.k.a ndarray).
PyTorch provides Tensors that can live either on the CPU or the GPU, and accelerate compute by a huge amount.
We provide a wide variety of tensor routines to accelerate and fit your scientific computation needs
such as slicing, indexing, math operations, linear algebra, reductions. And they are fast!
PyTorch has a unique way of building neural networks: using and replaying a tape recorder.
Most frameworks such as TensorFlow, Theano, Caffe and CNTK have a static view of the world. One has to build a neural network, and reuse the same structure again and again. Changing the way the network behaves means that one has to start from scratch.
With PyTorch, we use a technique called reverse-mode auto-differentiation, which allows you to
change the way your network behaves arbitrarily with zero lag or overhead. Our inspiration comes
from several research papers on this topic, as well as current and past work such as
torch-autograd[4],
autograd[5],
Chainer[6], etc.
…
2017
- http://pytorch.org/about/
- QUOTE: PyTorch is 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.
- You can reuse your favorite python packages such as numpy, scipy and Cython to extend PyTorch when needed.
- At a granular level, PyTorch is a library that consists of the following components:
- QUOTE: PyTorch is a python package that provides two high-level features:
Package Description torch a Tensor library like NumPy, with strong GPU support torch.autograd a tape based automatic differentiation library that supports all differentiable Tensor operations in torch torch.nn a neural networks library deeply integrated with autograd designed for maximum flexibility torch.optim an optimization package to be used with torch.nn with standard optimization methods such as SGD, RMSProp, LBFGS, Adam etc. torch.multiprocessing python multiprocessing, but with magical memory sharing of torch Tensors across processes. Useful for data loading and hogwild training. torch.utils DataLoader, Trainer and other utility functions for convenience torch.legacy(.nn/.optim) legacy code that has been ported over from torch for backward compatibility reasons
- Usually one uses PyTorch either as:
- A replacement for numpy to use the power of GPUs.
- a deep learning research platform that provides maximum flexibility and speed
- Usually one uses PyTorch either as: