Article complete

TensorFlow Releases New Update TF 2.12.0

Major improvements have been made to Keras as well.

TensorFlow logo featuring a stylized "TF" in orange and yellow with a shadow effect on a gray background.

Key takeaways

  • TensorFlow 2.12.0 has been released with significant updates to its packages and functionalities.
  • The tensorflow-gpu and tf-nightly-gpu packages have been removed in favour of tensorflow or tf-nightly.
  • The 'tf.function' now directly uses the Python inspect library for improved signature parsing.
  • Keras has undergone major improvements, particularly with saving tasks now located in a new namespace.
  • Users must update their code to align with the new API locations for Keras to avoid errors.

Takeaways drafted with AI from the article text.

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. 

Published

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

Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign

More in this story

Tensorflow · 5 stories
  1. Google Launches Tool To Adapt ML Models With Transfer Learning
  2. Build your first text-to-image searcher with TensorFlow Lite Model Maker
  3. How to condense deep learning models for edge devices using quantization?
  4. You are here: TensorFlow Releases New Update TF 2.12.0
  5. ExecuTorch vs TensorFlow Lite
About the author

Contributor

All stories
Belamy · Daily

The day’s AI news, before your first meeting.