{"id":24705,"library":"tfa-nightly","title":"TensorFlow Addons (Nightly)","description":"Nightly pre-release builds of TensorFlow Addons, a library of maintained TensorFlow API extensions. Current version 0.23.0.dev (development). Published irregularly (nightly). Not stable; use TensorFlow Addons stable (tensorflow-addons) for production.","status":"active","version":"0.23.0.dev20240415222534","language":"python","source_language":"en","source_url":"https://github.com/tensorflow/addons","tags":["tensorflow","addons","nightly","deep-learning","extensions"],"install":[{"cmd":"pip install tfa-nightly","lang":"bash","label":"Install nightly build"}],"dependencies":[{"reason":"Required; addons are extensions of TensorFlow","package":"tensorflow","optional":false}],"imports":[{"note":"tfa-nightly installs as tensorflow_addons (same namespace). Import using standard module name.","wrong":"from tensorflow_addons import ...","symbol":"tfa","correct":"import tensorflow_addons as tfa"}],"quickstart":{"code":"import tensorflow as tf\nimport tensorflow_addons as tfa\n\n# Example: use a standard optimizer from addons\nmodel = tf.keras.Sequential([tf.keras.layers.Dense(10)])\noptimizer = tfa.optimizers.LAMB(learning_rate=0.001)\nmodel.compile(optimizer=optimizer, loss='mse')\nprint('tfa installed and working')","lang":"python","description":"Minimal working example: import tensorflow and tensorflow_addons, then use an optimizer from addons."},"warnings":[{"fix":"Pin to a specific nightly version and test thoroughly before updating.","message":"tfa-nightly is inherently unstable and may break at any time. APIs can change or disappear without notice. Use only for testing.","severity":"breaking","affected_versions":"all"},{"fix":"Use only one of them. Uninstall the other: pip uninstall tensorflow-addons tfa-nightly","message":"tfa-nightly and tensorflow-addons (stable) cannot be installed together. They conflict because both install under the same namespace tensorflow_addons.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate to core TensorFlow APIs. See https://github.com/tensorflow/addons#recommendation","message":"TensorFlow Addons (including nightly) is in maintenance mode since TensorFlow 2.10. Many ops have been integrated into core or moved to tf.keras. The official recommendation is to use core TensorFlow functions where possible.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: pip install tfa-nightly. Ensure the package is installed in the correct Python environment.","cause":"Installation failure or trying to import when package is not installed.","error":"ModuleNotFoundError: No module named 'tensorflow_addons'"},{"fix":"Use import tensorflow as tf; then access via tf.keras. If using tf-nightly, use import keras directly.","cause":"Using nightly TensorFlow where tf.keras is not directly accessible (common in early TF 2.x).","error":"AttributeError: module 'tensorflow' has no attribute 'keras'"},{"fix":"Check latest documentation at https://github.com/tensorflow/addons for correct import paths. Always pin a version.","cause":"The API may have been removed in a nightly build or renamed.","error":"ImportError: cannot import name 'LAMB' from 'tensorflow_addons.optimizers'"},{"fix":"Uninstall both tensorflow-addons and tfa-nightly, then install only tfa-nightly in a clean virtual environment.","cause":"Incomplete installation or broken environment due to conflicting packages.","error":"OSError: [Errno 2] No such file or directory: 'python3.10/site-packages/tensorflow_addons/...'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}