PyTorch Adds New APIs
Written by Kay Ewbank   
Tuesday, 10 November 2020

PyTorch has been updated with several new APIs including support for NumPy-Compatible FFT operations, profiling tools and major updates to both distributed data parallel (DDP) and remote procedure call (RPC) based distributed training.

PyTorch is an optimized tensor library for deep learning using GPUs and CPUs. It aims to offer a replacement for NumPy that make use of the power of GPUs, while providing a deep learning research platform that provides maximum flexibility and speed.

pytorch

There are several new front end APIs, all in beta format. These include torch.fft, which  implements FFT-related functions with the same API as NumPy. PyTorch has historically supported a few FFT-related functions, but the new API adds more functions for use in scientific fields like signal processing.

A second API adds C++ support for nn.transformer modules and allows developers to use the nn.transformer module abstraction from the C++ Frontend. It also means you no longer need to save a module from python/JIT and load into C++ as it can now be used it in C++ directly.

The third new API is torch.set_deterministic. This may help identify errors when debugging or testing a program. Its function directs PyTorch operators to select deterministic algorithms when available, and to throw a runtime error if an operation may result in nondeterministic behavior.

Along with the new APIs, several features have been moved to a 'stable' level, including custom C++ Classes, the memory profiler, extensions via custom tensor-like objects, user async functions in RPC and a number of other features in torch.distributed.

The developers say that one highlight is that CUDA 11 is now officially supported with binaries available at PyTorch.org. This release also includes updates and additions to profiling and performance for RPC, TorchScript and Stack traces in the autograd profiler. Elsewhere, Transforms now support Tensor inputs, batch computation, GPU, and TorchScript, and PyTorch now has native image I/O for JPEG and PNG formats.
 

pytorch

More Information

PyTorch Website

PyThorch On GitHub

Related Articles

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

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


GitHub Enterprise Server Adds Deployment Rollout Controls
11/03/2024

Version 3.12 of GitHub Enterprise Server, the self-hosted version of GitHub that organizations can install on their own servers, has been released with support for restricting deployment rollouts [ ... ]



Master Large Language Model Ops
20/03/2024

New technology brings with it more career opportunities. You may never have imagined becoming an LLMOps consultant,  but there's now a Coursera Specialization which provides preparation for this  [ ... ]


More News

raspberry pi books

 

Comments




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

Last Updated ( Tuesday, 10 November 2020 )