arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1912.01703cs.LGcs.MSstat.ML
收藏

PyTorch:一个具有强制风格的高性能深度学习库

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

University of Warsaw(华沙大学);Facebook AI Research(Facebook人工智能研究实验室);Google(谷歌公司);NVIDIA(英伟达公司);Orobix(奥罗比克斯公司);Oxford University(牛津大学);Xamla(Xamla公司);Nabla(纳布拉公司);Twitter(推特公司)
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaiso… 展开作者

Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, Soumith Chintala

摘要:

深度学习框架通常关注可用性或速度,但不是两者兼而有之。PyTorch是一个机器学习库,它表明这两个目标实际上是兼容的:它提供了一种命令式和Pythonic编程风格,支持代码作为模型,使调试变得容易,并与其他流行的科学计算库保持一致,同时保持高效并支持GPU等硬件加速器。在本文中,我们详细介绍了推动PyTorch实现的原则,以及它们如何反映在其架构中。我们强调PyTorch的每个方面都是一个常规的Python程序,完全由用户控制。我们还解释了如何仔细和务实的实现其运行时的关键组件,使他们能够一起工作,以实现令人信服的性能。我们在几个常见的基准测试中展示了各个子系统的效率以及PyTorch的整体速度。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑