tf.compat.v1.enable_v2_behavior | TensorFlow Core v2.7.0
www.tensorflow.org › compat › v1Nov 05, 2021 · It switches all global behaviors that are different between TensorFlow 1.x and 2.x to behave as intended for 2.x. This function is called in the main TensorFlow __init__.py file, user should not need to call it, except during complex migrations. Except as otherwise noted, the content of this page is licensed under the Creative Commons ...
Migrate to TensorFlow 2 | TensorFlow Core
www.tensorflow.org › guide › migrateSep 22, 2021 · Learn how to migrate your TensorFlow code from TensorFlow 1.x to TensorFlow 2. It may take a little work to convert your code, but every change results in access to new features and models, increased clarity and simplicity, and easier debugging. Before starting to migrate, read the behaviors guide. Briefly, the migration process is: