vix.ing · top · new · best · stats · spec

PyTorch: An Imperative Style, High-Performance Deep Learning Library

2019/12/03 by Adam Paszke, Paszke, Adam, Sam Gross +41 · 1 voice · 2303 citations
Computer Science · #Computational Physics and Python Applications #Machine Learning and Data Classification #Parallel Computing and Optimization Techniques #cs.LG #cs.MS #stat.ML

paper · pdf · doi:10.48550/arxiv.1912.01703

openalex publication_date 2019/12/03 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

Deep learning frameworks have often focused on either usability or speed, but not both. PyTorch is a machine learning library that shows that these two goals are in fact compatible: it provides an imperative and Pythonic programming style that supports code as a model, makes debugging easy and is consistent with other popular scientific computing libraries, while remaining efficient and supporting hardware accelerators such as GPUs. In this paper, we detail the principles that drove the implementation of PyTorch and how they are reflected in its architecture. We emphasize that every aspect of PyTorch is a regular Python program under the full control of its user. We also explain how the careful and pragmatic implementation of the key components of its runtime enables them to work together to achieve compelling performance. We demonstrate the efficiency of individual subsystems, as well as the overall speed of PyTorch on several common benchmarks.

Cited by

Discussions

Related