arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.08429cs.LG
收藏

Torch.fx:Python中用于深度学习的实用程序捕获和转换

Torch.fx: Practical Program Capture and Transformation for Deep Learning in Python

Facebook(脸书)

James K. Reed, Zachary DeVito, Horace He, Ansley Ussery, Jason Ansel

摘要:

现代深度学习框架提供了嵌入在Python中的命令式、渴望执行编程接口,以提供高效的开发体验。然而,深度学习从业者有时需要捕获和转换程序结构,以实现性能优化、可视化、分析和硬件集成。我们研究了用于深度学习的程序捕获和转换的不同设计。通过为典型的深度学习用例而不是长尾用例进行设计,可以为程序捕获和转换创建一个更简单的框架。我们在torch.fx中应用了这一原则,torch.fx是一个完全用Python编写的PyTorch程序捕获和转换库,并为ML从业者的高开发效率进行了优化。我们展示了一些案例研究,展示了torch.fx如何实现PyTorch生态系统中以前无法访问的工作流。

英文摘要:

Modern deep learning frameworks provide imperative, eager execution programming interfaces embedded in Python to provide a productive development experience. However, deep learning practitioners sometimes need to capture and transform program structure for performance optimization, visualization, analysis, and hardware integration. We study the different designs for program capture and transformation used in deep learning. By designing for typical deep learning use cases rather than long tail ones, it is possible to create a simpler framework for program capture and transformation. We apply this principle in torch.fx, a program capture and transformation library for PyTorch written entirely in Python and optimized for high developer productivity by ML practitioners. We present case studies showing how torch.fx enables workflows previously inaccessible in the PyTorch ecosystem.

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

↑