Skip to content

Latest commit

 

History

History
33 lines (15 loc) · 2.37 KB

二、Pytorch的核心概念.md

File metadata and controls

33 lines (15 loc) · 2.37 KB

Two, the core concept of Pytorch

Pytorch is a Python-based machine learning library. It is widely used in deep learning fields such as computer vision and natural language processing. It is currently a deep learning framework that competes with TensorFlow and is very popular in academic circles.

It mainly provides the following two core functions:

  1. Support GPU accelerated tensor calculation.

  2. It is convenient to optimize the automatic differentiation mechanism of the model.

The main advantages of Pytorch:

  • Concise and easy to understand: Pytorch's API design is quite concise and consistent. Basically it is tensor, autograd, nn three-level packaging. It is very easy to learn. There is a paragraph like this, saying that TensorFlow's design philosophy is Make it complicated, Keras's design philosophy is Make it complicated and hide it, and Pytorch's design philosophy is Keep it simple and stupid.

  • Easy to debug: Pytorch uses dynamic graphs, which can be debugged like ordinary Python code. Unlike TensorFlow, Pytorch's error reporting instructions are usually easy to understand. There is a paragraph like this, saying that you can never find the reason for its error from the error description of TensorFlow.

  • Powerful and efficient: Pytorch provides a very rich model components that can quickly realize ideas. And it runs very fast. At present, most of the paper related to deep learning is implemented with Pytorch. Some researchers say that after switching from using TensorFlow to using Pytorch, their sleep is much better, their hair is thicker than before, and their skin is smoother than before.

As the saying goes, the Pytorch building also has its foundation.

The core concepts at the bottom of Pytorch are tensors, dynamic calculation graphs and automatic differentiation.

If this book is helpful to you and want to encourage the author, remember to add a star⭐️ to this project and share it with your friends 😊!

If you need to further communicate with the author on the understanding of the content of this book, please leave a message under the public account "Algorithm Food House". The author has limited time and energy and will respond as appropriate.

You can also reply to the keyword in the background of the official account: Add group, join the reader exchange group and discuss with you.

算法美食屋logo.png