PyTorch is a python package that provides two high-level features:1
If you have ever used numpy in Python, you already have used Tensors (a.k.a ndarray)1 Image by https://leonardoaraujosantos.gitbooks.io/artificial-inteligence/content/linear_algebra.html
PyTorch provides Tensors that can be created and manipulated on both CPU and GPU. Also, it is easy to convert numpy ndarray to PyTorch Tensor and vice versa.
One of the advantages PyTorch has is that it uses dynamic computation graph. On the other hand, most of other deep learning frameworks such as TensorFlow, Theano, Caffe, and CNTK use a static computation graph. Thus, we need to define and compile the network completely before actually using (traininig) it. With PyTorch, however, we can change the way the network behaves arbitratily. pytorch.org
We will learn the following topics in this chapter:
Let's get started with some examples here!