PyTorch 1.5 Updates C++ API
Written by Kay Ewbank   
Friday, 24 April 2020

PyTorch, an optimized tensor library for deep learning using GPUs and CPUs, has been updated with several major new API additions and improvements, along with new and updated libraries.

PyTorch aims to offer a replacement for NumPy that make suse of the power of GPUs, while providing a deep learning research platform that provides maximum flexibility and speed.

pytorch

 

The new release, PyTorch 1.5, includes a significant update to the C++ frontend, ‘channels last’ memory format for computer vision models, and a stable release of the distributed RPC framework used for model-parallel training. The release also has new APIs for autograd for hessians and jacobians, and an API that allows the creation of Custom C++ Classes that was inspired by pybind.

The C++ frontend API means users can translate their model from Python API to C++ API, making the model authoring experience much smoother. The work overcame problems including differences between the way optimizers behaved in C++ and Python. Another problem was the lack of tensor multi-dim indexing API in C++, which can now be achieved without a workaround. 

This release also adds a new API for binding custom C++ classes into TorchScript and Python simultaneously. The developers say this API is almost identical in syntax to pybind11. It allows users to expose their C++ class and its methods to the TorchScript type system and runtime system such that they can instantiate and manipulate arbitrary C++ objects from TorchScript and Python.

Elsewhere, the new 'channels last’ memory layout provides a way to use performance efficient convolution algorithms and hardware such as Nvidia's Tensor Cores, FBGEMM and QNNPACK.

 

pytorch

More Information

PyTorch Website

PyThorch On GitHub

Related Articles

Microsoft Releases DeepSpeed For PyTorch

PyTorch Adds TorchScript API

PyTorch Scholarship Challenge

Pyro Now On Watson Machine Learning

More Efficient Style Transfer Algorithm

ONNX For AI Model Interoperability

Microsoft Cognitive Toolkit Version 2.0

NVIDA Updates Free Deep Learning Software

TensorFlow - Googles Open Source AI And Computation Engine

AIGoes Open Source To The Tune Of $1 Billion 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, Facebook or Linkedin.

Banner


GitPod Adds Native GitLab Integration
15/10/2020

Users of GitLab can now make use of the Gitpod UI. GitLab is a popular DevOps tool that is used by more than 100,000 organizations. A partnership between GitLab and Gitpod means developers can make us [ ... ]



IBM's Call For Code 2020 Winner - Agrolly
16/10/2020

IBM this week awarded the 2020 Call for Code grand prize of $200,000 to the creators of an app that helps small farmers threatened by climate change decide what to plant and w [ ... ]


More News

square

 



 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Friday, 24 April 2020 )