shaurov2253
shaurov2253

Reputation: 303

Upgrade Tensorflow 1.x code to Tensorflow 2.x code

I have been trying to update a TF1 code to TF2 code on google colab, using the following command that I found on the tutorial (https://www.tensorflow.org/guide/upgrade#compatibility_modules) and also on youtube (https://www.youtube.com/watch?v=JmSNUeBG-PQ):

!tf_upgrade_v2 -h --infile medgan.py --outfile medgan_upgraded.py

But seems like it's doing nothing. It's showing no error, just shows how to implement the syntax which I'm already following. The instruction in the youtube video is pretty straightforword but I have no idea why this is not working. Can anyone help me with some ideas about what I might be missing? Thank you.

Upvotes: 1

Views: 1207

Answers (1)

Jinto Lonappan
Jinto Lonappan

Reputation: 332

The -h parameter is for getting help on the command.

Try executing it without it, as: !tf_upgrade_v2 --infile medgan.py --outfile medgan_upgraded.py

Upvotes: 1

Related Questions