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


Google Agent Dev Kit Adds LangChain4j Integration
13/10/2025

Google has updated its Agent Development Kit for Java to add integration with the LangChain4j LLM framework. This expands the range of large language models available to users of the development kit t [ ... ]



Ada Lovelace: Countess Of Computing
14/10/2025

Today, October 14th, is Ada Lovelace Day with events around the globe taking place to raise the profile of women in science, technology, engineering and math. Although the date, the second Tuesda [ ... ]


More News

pico book

 

Comments




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

Last Updated ( Friday, 24 April 2020 )