Facebook Developers Resources: Introduction to PyTorch P1

A. What is PyTorch

PyTorch is Open source deep learning research platform that provides maximum flexibility and speed. It has been developed by Facebook‘s artificial intelligence research group(FAIR), and Uber‘s Pyro software for probabilistic programming is built on it.

PyTorch is inspired by Torch and based on Python. As you know, Python now is the most popular programming language for Machine Learning Engineers, Data Scientists and AI researchers or folks who love Data.

The creators of PyTorch said that “Deep integration into Python allows popular libraries and packages to be used for easily writing neural network layers in Python.”

B. Philosophy of PyTorch’s development

  1. Stay out of the way
  2. Cater to the impatient
  3. Promote linear code-flow
  4. Full interop with the Python ecosystem
  5. Be as fast as anything else

C. Features:


PyTorch’s Hybrid front-end provides ease-of-use and flexibility in eager mode, while seamlessly transitioning to graph mode for speed, optimization, and functionality in C++ runtime environments.



Optimize performance in both research and production by taking advantage of native support for asynchronous execution of collective operations and peer-to-peer communication that is accessible from Python and C++.


PyTorch is not a Python binding into a monolithic C++ framework. It’s built to be deeply integrated into Python so it can be used with popular libraries and packages such as Cython and Numba.


An active community of researchers and developers have built a rich ecosystem of tools and libraries for extending PyTorch and supporting development in areas from computer vision to reinforcement learning

Let’s get ready to move forward with deep learning and neural networks. In the next articles, we will get PyTorch installed. I’ll see you there!


About Hung Le Thanh 6 Articles
Hung Le Thanh is a Community Lead at Facebook Developer Circle, he worked in various companies such as FPT Software and Google. He animates and presents various workshops in blockchain.

Be the first to comment

Leave a Reply