Article complete

TensorFlow v2.9 released: Major highlights

The main highlights of this release are performance enhancement with oneDNN and the release of a new API for model distribution, called DTensor

Logo of TensorFlow in orange and gray, with a stylized 'TF' and the word 'TensorFlow' below it.

Key takeaways

  • TensorFlow version 2.9 introduces significant performance enhancements through the integration of the oneDNN performance library.
  • The new DTensor API facilitates model distribution, enabling seamless transitions between data and model parallelism.
  • DTensor allows developers to train large models across multiple devices, improving scalability without increasing startup time.
  • Optimisations for oneDNN will be enabled by default on certain Intel CPUs, delivering substantial performance improvements.
  • The model code structure shifts from replicas to a global perspective with DTensor, streamlining the development process.

Takeaways drafted with AI from the article text.

Just three months after the release of version 2.8, TensorFlow has now announced the latest 2.9 version. The main highlights of this release are performance enhancement with oneDNN and the release of a new API for model distribution, called DTensor, for seamless movement between data and model parallelism.

Another major feature of this release is the introduction of DTensorflow, which is a new API for models to move from data parallelism to single program multiple data (SPMD) based model parallelism, including spatial partitioning. A developer would now have tools to train models where the model inputs are large enough not to fit on a single device. It is a device-agnostic API, allowing the same model code to be used on CPU, GPU or TPU – also including models partitioned across device types. It also removes the coordinator and leaves the task to drive its locally attached devices. This allows model scaling without impacting the startup time.

Earlier, the model code was written around replicas, but with DTensor, the model code is written from a global perspective and per replica code is delivered by DTensor runtime.

Other major announcements include the Window Subsystem for Linux for developers to run a Linux environment directly on Windows without needing a virtual machine or dual boot setup.

With version 2.8, TensorFlow introduced an API to make ops deterministic. Determinism refers to running an op multiple times with the same inputs to obtain the exact same output each time. In version 2.9, the determinism performance is improved.

Published

Spotted an error? Tell our editors. Read our editorial standards and corrections.