TensorFlow Releases New Update TF 2.12.0

Major improvements have been made to Keras as well.
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. 

Subscribe to our Newsletter

Join our editors every weekday evening as they steer you through the most significant news of the day, introduce you to fresh perspectives, and provide unexpected moments of joy
Your newsletter subscriptions are subject to AIM Privacy Policy and Terms and Conditions.

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. 

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.

Download our Mobile App

MachineHack | AI Hackathons, Coding & Learning

Host Hackathons & Recruit Great Data Talent!

AIMResearch Pioneering advanced AI market research

With a decade of experience under our belt, we are transforming how businesses use AI & data-driven insights to succeed.

The Gold Standard for Recognizing Excellence in Data Science and Tech Workplaces

With Best Firm Certification, you can effortlessly delve into the minds of your employees, unveil invaluable perspectives, and gain distinguished acclaim for fostering an exceptional company culture.

AIM Leaders Council

World’s Biggest Community Exclusively For Senior Executives In Data Science And Analytics.

3 Ways to Join our Community

Telegram group

Discover special offers, top stories, upcoming events, and more.

Discord Server

Stay Connected with a larger ecosystem of data science and ML Professionals

Subscribe to our Daily newsletter

Get our daily awesome stories & videos in your inbox
MOST POPULAR