PyTorch 1.5 Released: New APIs, Updated C++ Frontend and More

Synced
SyncedReview
Published in
3 min readApr 22, 2020

The PyTorch Team yesterday announced the release of PyTorch 1.5, along with new and updated libraries. The release features several major new API additions and improvements, including a significant update to the C++ frontend, Channel Last memory format for computer vision models, and a stable release of the distributed RPC framework used for model-parallel training.

The C++ frontend API is now at parity with Python with appropriate documentation, and features previously tagged as experimental have been moved to stable versions. C++ optimizers now also behave identically to those in the Python API.

The team has also released an experimental Channel Last memory format for computer vision models, which unlocks the ability to use performance efficient convolution algorithms and hardware such as Nvidia’s Tensor Cores and FBGEMM. The Channel Last memory format was designed to automatically propagate through the operators to allow easy switching between memory layouts.

The release also adds new APIs for the autograd package to facilitate hessians and jacobians computation and an API for binding custom C++ classes into TorchScript and Python simultaneously which is almost identical in syntax to pybind11.

The Distributed RPC framework that was launched as experimental in the 1.4 release has been upgraded to stable following various enhancements and bug fixes. Along with improved reliability and robustness, the framework also boasts some new features, including profiling support, TorchScript functions in RPC ability, and ease-of-use enhancements.

Additionally, torch_xla 1.5 is now available and tested with the PyTorch 1.5 release, providing a mature Cloud TPU experience.

Note that PyTorch 1.5 and future versions will no longer support Python 2 — specifically version 2.7. Going forward, support will be limited to Python 3, specifically Python 3.5, 3.6, 3.7 and 3.8.

The detailed release notes are on GitHub.

Journalist: Yuan Yuan | Editor: Michael Sarazen

Thinking of contributing to Synced Review? Synced’s new column Share My Research welcomes scholars to share their own research breakthroughs with global AI enthusiasts.

We know you don’t want to miss any story. Subscribe to our popular Synced Global AI Weekly to get weekly AI updates.

Need a comprehensive review of the past, present and future of modern AI research development? Trends of AI Technology Development Report is out!

2018 Fortune Global 500 Public Company AI Adaptivity Report is out!
Purchase a Kindle-formatted report on Amazon.
Apply for Insight Partner Program to get a complimentary full PDF report.

--

--

Synced
SyncedReview

AI Technology & Industry Review — syncedreview.com | Newsletter: http://bit.ly/2IYL6Y2 | Share My Research http://bit.ly/2TrUPMI | Twitter: @Synced_Global