tensorflow-3-public icon indicating copy to clipboard operation
tensorflow-3-public copied to clipboard

try catch block to check tensorflow version is obsolete

Open vsnupoudel opened this issue 4 years ago • 0 comments

I believe the following block of code could be removed wherever they appear. It acually flows into the exception.

try:

%tensorflow_version only exists in Colab.

%tensorflow_version 2.x except Exception: print('This does not pass')

vsnupoudel avatar Dec 02 '21 15:12 vsnupoudel