MITB Banner

TensorFlow Releases New Update TF 2.12.0

Major improvements have been made to Keras as well.

Share

Listen to this story

TensorFlow today released TensorFlow 2.12.0!

Check out the GitHub repo to learn more about the update. 

In the updated version, the tensorflow-gpu and tf-nightly-gpu packages have been effectively removed and replaced with packages that direct users to switch to tensorflow or tf-nightly. The name was the only difference between the two sets of packages ever since TensorFlow 2.1, so there is no loss of functionality or GPU support. 

Furthermore, the ‘tf.function’ now uses the Python inspect library directly for parsing the signature of the Python function. This factor can break certain previously ignored functions where signature is malformed including the use of ‘functools.wraps’ on a function with different signature and using ‘functools.partial’ with an invalid tf.function input. The updated function also enforces input parameter names to be valid Python identifiers and incompatible names are automatically sanitized similar to the existing SavedModel signature behavior. The function now has an experimental.Fingerprint that contains the fingerprint of the SavedModel. It also has an API for reading the fingerprint of a SavedModel.

The new version also includes TraceType which now requires an additional placeholder_value method to be defined. Instead of the value itself, ‘tf.function’ now traces with TraceTyle generated placeholder values.

Major improvements have been made to Keras as well. All saving related tasks have moved to keras.saving, a new namespace. The previous API locations (in keras.utils and keras.models) are still available but it’s recommended to update the code to point to the new API locations. The previous Keras version may have ignored the mark but now the users will get an error if they pass a mask with an incompatible shape. 

For TensorFlow Lite, float LSTM will now support diagonal recurrent tensors and the users can add 16-bit float type support for built-in op fill. Also, transpose now supports 6D tensors. 

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