The latest release of TensorFlow 1.0 has left in ways such that all the computing and using reusing the previous codes that all of them are not backward compatible. This means an application developed on TensorFlow 0.x won't necessarily work on TensorFlow 1.x directly. Now to upgrade 0.x codes to 1.x compatible, there are two ways using the upgrade script or manually.
Migrating to TensorFlow 1.x
How to upgrade using the script
The tf_upgrade.py script helps you to upgrade your 0.x source codes to 1.x (or higher) compatible. This script can be downloaded from GitHub at https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/compatibility. To convert a single 0.x TensorFlow source file to 1.x (or higher) issue a command in following format:
For Python...