© Nikhil Ketkar 2017

Nikhil Ketkar, Deep Learning with Python, https://doi.org/10.1007/978-1-4842-2766-4_12

12. Introduction to PyTorch

Nikhil Ketkar

(1)Bangalore, Karnataka, India

In this chapter, we will cover PyTorch which is a more recent addition to the ecosystem of the Deep Learning framework. PyTorch can be seen as a Python front end to the Torch engine (which initially only had Lua bindings) which at its heart provides the ability to define mathematical functions and compute their gradients. PyTorch has fairly good Graphical Processing Unit (GPU) support and is a fast-maturing framework.

There is a significant difference between PyTorch and other frameworks like Theano or Tensorflow from a programming paradigm point of view. Frameworks such ...

Get Deep Learning with Python: A Hands-on Introduction now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.