{"library":"tensorflow","type":"library","category":null,"description":"Google's open-source machine learning framework. Current version is 2.21.0 (Mar 2026). Requires Python >=3.10. The single biggest footgun: TensorFlow 2.16+ ships Keras 3 as default, splitting tf.keras and import keras into two incompatible APIs. tf.estimator removed in 2.16.","language":"python","status":"active","version":"2.21.0","tags":["deep-learning","ml","gpu","keras","neural-networks","tpu"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install tensorflow","imports":["# Option 1: Use standalone Keras 3 (recommended for new code)\nimport keras\nmodel = keras.Sequential([keras.layers.Dense(64, activation='relu')])\n\n# Option 2: Access via tf.keras (same Keras 3 in TF 2.16+)\nimport tensorflow as tf\nmodel = tf.keras.Sequential([tf.keras.layers.Dense(64)])","@tf.function\ndef train_step(x, y):\n    with tf.GradientTape() as tape:\n        pred = model(x, training=True)\n        loss = loss_fn(y, pred)\n    grads = tape.gradient(loss, model.trainable_variables)\n    optimizer.apply_gradients(zip(grads, model.trainable_variables))\n    return loss"]},{"cmd":"pip install tensorflow[and-cuda]","imports":[]},{"cmd":"pip install tensorflow-cpu","imports":[]},{"cmd":"pip install tf-keras","imports":[]}],"homepage":"https://www.tensorflow.org/","github":"https://github.com/tensorflow/tensorflow","docs":null,"changelog":null,"pypi":"https://pypi.org/project/tensorflow/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":63,"avg_install_s":45.6,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/tensorflow/compatibility"}}