Merge pull request #30586 from siju-samuel:lite_deprecated_tfrun_removal

PiperOrigin-RevId: 258244067
This commit is contained in:
TensorFlower Gardener 2019-07-15 15:05:26 -07:00
commit 5c6ff74137
3 changed files with 3 additions and 3 deletions

View File

@ -348,4 +348,4 @@ def main(argv):
if __name__ == "__main__":
FLAGS, unparsed = parser.parse_known_args()
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
tf.compat.v1.app.run(main=main, argv=[sys.argv[0]] + unparsed)

View File

@ -105,4 +105,4 @@ if __name__ == "__main__":
if unparsed:
print("Usage: %s <path out> <zip file to generate>")
else:
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
tf.compat.v1.app.run(main=main, argv=[sys.argv[0]] + unparsed)

View File

@ -84,4 +84,4 @@ def main(_):
if __name__ == '__main__':
tf.logging.set_verbosity(tf.logging.INFO)
tf.app.run(main)
tf.compat.v1.app.run(main)