pypi tensorflow 2.22.0
TensorFlow 2.22.0

6 hours ago

Release 2.22.0

TensorFlow

Breaking Changes

  • The TensorBoard dependency is no longer included by default. If you use tf.summary.* APIs or tf.keras.callbacks.TensorBoard, please install the tensorboard package separately (pip install tensorboard). Otherwise, TensorFlow will raise an ImportError.
  • In tensorflow/c/experimental/filesystem/filesystem_interface.h, removed TF_TransactionToken and associated APIs.

Major Features and Improvements

  • Added official support for Python 3.14 (cp314) across Linux, macOS, and Windows (supporting Python 3.10–3.14).
  • Added initial CUDA 13.0 + cuDNN 9.12 support via the dedicated tensorflow-cuda13 package (pip install tensorflow-cuda13), alongside default CUDA 12.5 + cuDNN 9.10 wheels.
  • Upgraded Intel oneDNN to v3.14.1 with optimized convolution and transpose kernels.
  • Pinned stable keras >= 3.12.0 (replacing keras-nightly).
  • tf.lite:
    • Adds support for QUI4 (Quantized Unsigned 4-bit) in the Dequantize operator.
    • Adds support for FP16 and BF16 in the Unpack operator.
    • Adds support for FP16 in the Transpose and DynamicUpdateSlice operators.
    • Transpose now supports up to 8D tensors.
    • Adds support for FLOAT8_E4M3FN and FLOAT8_E5M2 data types.

Bug Fixes and Other Changes

  • Custom-Op Shim & Build Rules: Exported tf_op_shim sources (shape.cc, tf_op_shim.cc, tf_tensor_view.cc), fixed protobuf attribute lookup across shared-library boundaries for downstream custom-op libraries, and fixed boolean parsing of USE_PYWRAP_RULES (#129858).
  • CheckpointReader: Releases the Python GIL during synchronous read operations to prevent deadlocks under multithreading.
  • CUDA Driver Logging: Demoted missing CUDA driver messages from warning/info to VLOG(1) on CPU-only machines to eliminate noisy STDERR output on import.
  • oneDNN (MKL) Kernels: Raises InvalidArgumentError instead of aborting the process for rank-mismatched Conv3DBackpropFilterV2 inputs and scalar ConjugateTranspose. Fixes #118340 and #118345.
  • BatchFunction Operator: Adds num_warmup_batch_threads and per_criticality_batch_timeout_micros op attributes.
  • TensorFlow API: Exports __new__ in public API golden files for subclasses of tuple (e.g., tf.io.FixedLenFeature) to fix false positives during static type checking.
  • tf.data: Fixes a bug in tf.data.Dataset.scan where the shape of the state returned by scan_func was not strictly validated against the initial state.
  • tf.image.adjust_contrast: Registers the missing Python gradient for AdjustContrastv2 so it can be differentiated with GradientTape. Fixes #126083.
  • tf.nn.softsign: Fixes second-order gradients of tf.nn.softsign.
  • tf.math.reciprocal: Constrains XLA registration of Reciprocal and Inv to device-supported types so jit_compile=True no longer silently accepts integer inputs. Fixes #126414.
  • tf.experimental.numpy: isclose and allclose now apply rtol/atol to integer inputs, matching NumPy.
  • tf.image.non_max_suppression: Fixes a segmentation fault under jit_compile=True when boxes and scores are empty. Fixes #117245.

Thanks to our Contributors

This release contains contributions from many people at Google, as well as:

0xASTRA, 3zzzz_0x, aarushisingh04, Abdul Wahab Ahmed Khan, Abhijeet Awasthi, abhijeet117, Abhinav Srivastava, Adi-Il, Adil Burak Şen, adilburaksen, Adithyan Ak, Aditya Gaurav, Ag Ramesh, Ahmed Sagar, Akhil Goel, Alex Y. Chan, Aman Sachan, andersendsa, animesh68, Ankit Vishwakarma, Anna Mayne, Anthony Platanios, Anupam Mediratta, Anupamkumar-1, Apoorv Darshan, AratiGanesh, Arun, Ashiq Imran, Ashish Rao, Ashitesh Singh, Ashutosh Kumar Singh, Ashutosh0x, Avneesh Jadhav, Ayaka Mikazuki, Beans, Benjamin Demaille, Bhavani Subramanian, Bradley Fargo, C. Antonio Sánchez, Chao, Chenna-Nagesh, Chenxi Hou, Chirag, Chirag Wattamwar, Christian Aurich, chuanzhisongshu, Chunyu Jin, clarke, Cocoa, CodeByMoriarty, codeXsidd, complexbulb, Corentin Kerisit, cuishuang, Cyrax321, Daksh Prajapati, Dakshprajapati-Afk, Daniil S, Danyal Ahmed, David Nichols, debaditya, Deep Patel, dependabot[bot], destro4evr, Dlcompilers-Infra-Bot, Doehyun Baek, Dragan Mladjenovic, Edrilan Berisha, Eetu Sjöblom, Elshad Toklayev, Emil Nichita, Emily, endorphin13, evilgensec, Eylon Eliyahu Krause, Faijul Amin, Florian Assmuth, foodlook, Furkan Egecan Nizam, FuZoe, gaurides, gladiator9797, Gulsum Gudukbay Akbulut, Guozhong Zhuang, Hanuman Singh, Harsha H S, Harsha Hs, Henry Bergin, Hsien-Ching Chung, htalaco, Hunterkritik-Byte, Huy Phung, Ian Tayler Lessa, Javid Khan, Jean-Baptiste Braun, Jian Li, Johannes Tenhumberg, Johnny Qiu, Justin Chiu, Kaivalya-Cyber, Kanvi Khanna, Kasper Nielsen, keerthanakadiri, Kejie Zhang, Kevin Barre, Keyur Ranipa, kgotlinux, kiwigitops, Kobi Hikri, kokol16, Kuldeeep18, Lakshit Verma, Lakshmi Arunachalam, Lao Fan, Lia, Linchen1-Robot, liruiyi, Luca Bruni, Maddipatla Chatan, madhanalagarsamy, Manish Reddy, Manjunath Gaonkar, Marco Minutoli, masaya.shiramizu, Matt Van Horn, Max Riffi-Aslett, Maxime France-Pillois, mcuiaws, Melissa Weber Mendonça, Mert Çakır, Michael Goldfarb, Milica Makevic, Min Htet Myet, Mina Ibrahim, Ming-Xu Huang, mohamedelabbas1996, Mohammadmseet-Hue, Mohammed Adib, mraunak, Mundur, Myself-Praveen, Nikhil Bhargava, Nikhita Hegde, Nishad Shabbir, Noxtimo, Nurul Gofran, nurulgofran, Oleg Eterevsky, Oliver Zhang, Olli Lupton, Om Thakkar, Omar Khaleel, Pavel Emeliyanenko, Pavithra Eswaramoorthy, pemeliya, Pham Binh, Praneeth Kodumagulla, Prasanna Dabi, prasanna8585, Priyanshu Doshi, Punya Modi, PwntGambit, qgao007, Qiu-Tiandev, Rachit-Mangawa, RadikHoroshev, Raghunandan Kumar, Rahul-S-007, Remin Franklin Eliyas, Ricardo Salveti, Rishu Ranjan, Roy Kim, rstar327, Ruturaj Kiran Vaidya, RuwanpuragePawan, Ryan Benney, Sahil Bhardwaj, Sai Ramineni, Sairam Veereddy, Saketh Reddy Pingili, Saksham Kapoor, Saksham Singh Rathore, Sam Ezeh, Samaresh Kumar Singh, SamareshSingh, Sankalp Thakur, Sepuri-Sai-Krishna, Sevin Fide Varoglu, Shanbin Ke, Shaogang Wang, Shin, Shinpache Shimura, shreyas, Som Tripathi, Srijan Upadhyay, Sudam Ranasinghe, Sumit Chauhan, Syed Mohammed Nayyar, Syed Osama Ali Shah, Techie03, Teerth Sharma, Terry Sun, Tirth, Tj Xu, tongke, Trighap52, Tristan, tsrw2048, Tushar Darote, Vaggelis, Vaisman, Vamshi Kiran Alugulla, Veer Jain, vfdev, Vibhor Gautam, VibhorGautam, Ville Vesilehto, VirajMishra1, Vishwak Thatikonda, Wei Wang, wilmerdooley, Xuefei Jiang, y198nt, Yash2277-Ctrl, Yasir Ashfaq, yasiribmcon, Yigtwxx, Yimei Sun, Zach, Zhihao "Zephyr" Yao, Zoranjovanovic-Ns

Don't miss a new tensorflow release

NewReleases is sending notifications on new releases.