MITB Banner

What’s New in the Latest TensorFlow 2.16

One notable improvement is the added support for Python 3.12, showing TensorFlow's effort to stay current with the latest language releases.

Share

Listen to this story

Google’s TensorFlow, a leading open-source software library, has recently released version 2.16, bringing forth several enhancements and improvements. For 2024, this is the first update with the earlier one being released in October, 2023. 

One notable improvement is the added support for Python 3.12, showing TensorFlow’s effort to stay current with the latest language releases. Additionally, the inclusion of the ‘tensorflow-tpu’ package facilitates easier installations for those using Tensor Processing Units (TPUs). The update also ensures that TensorFlow pip packages are built with CUDA 12.3 and cuDNN 8.9.7, enhancing compatibility and performance.

A significant change in the TensorFlow Windows build is the adoption of Clang as the default compiler for building TensorFlow CPU wheels. This shift, starting with version 2.16, aligns with LLVM/Clang 17. While Clang becomes the default, users still have the option to build wheels using the MSVC compiler, providing flexibility in the development environment.

The update also introduces breaking changes, notably the removal of the tf.estimator API. Users relying on this API are encouraged to transition to TensorFlow 2.15 or an earlier version. Additionally, Keras 3.0 is set to become the default Keras version, necessitating script updates for users who may be using earlier versions of Keras.

Keras Update

The latest TensorFlow release introduces novel features to the Keras module, such as the DynamicEmbedding layer and the UpdateEmbeddingCallback. The DynamicEmbedding layer allows for continuous updating of vocabulary and embeddings during the training process. By maintaining a hash table to track the most up-to-date vocabulary, this layer offers a flexible approach to adapt to evolving datasets. When used in tandem with the UpdateEmbeddingCallback, the layer ensures timely updates based on a predefined time interval.

Furthermore, the keras.optimizers.Adam now includes the option to set adaptive epsilon values, aligning TensorFlow with equivalent implementations in Jax and PyTorch. This addition enhances optimization capabilities and ensures consistency across popular deep learning frameworks.

Check out the GitHub repository to learn more. 

Share
Picture of Tasmia Ansari

Tasmia Ansari

Tasmia is a tech journalist at AIM, looking to bring a fresh perspective to emerging technologies and trends in data science, analytics, and artificial intelligence.
Related Posts

CORPORATE TRAINING PROGRAMS ON GENERATIVE AI

Generative AI Skilling for Enterprises

Our customized corporate training program on Generative AI provides a unique opportunity to empower, retain, and advance your talent.

Upcoming Large format Conference

May 30 and 31, 2024 | 📍 Bangalore, India

Download the easiest way to
stay informed

Subscribe to The Belamy: Our Weekly Newsletter

Biggest AI stories, delivered to your inbox every week.

AI Forum for India

Our Discord Community for AI Ecosystem, In collaboration with NVIDIA. 

Flagship Events

Rising 2024 | DE&I in Tech Summit

April 4 and 5, 2024 | 📍 Hilton Convention Center, Manyata Tech Park, Bangalore

MachineCon GCC Summit 2024

June 28 2024 | 📍Bangalore, India

MachineCon USA 2024

26 July 2024 | 583 Park Avenue, New York

Cypher India 2024

September 25-27, 2024 | 📍Bangalore, India

Cypher USA 2024

Nov 21-22 2024 | 📍Santa Clara Convention Center, California, USA

Data Engineering Summit 2024

May 30 and 31, 2024 | 📍 Bangalore, India

Subscribe to Our Newsletter

The Belamy, our weekly Newsletter is a rage. Just enter your email below.