Home > Mobile >  I imported tensorflow as tf in notebook and run it successfully, but when I used tf.__version__ it s
I imported tensorflow as tf in notebook and run it successfully, but when I used tf.__version__ it s

Time:10-15

Image here The first block ran without any errors. but second says name error tf not defined even though i have imported tensorflow as tf.

CodePudding user response:

Yes, simply

   import tensorflow as tf
   print(tf.__version__)

Additionally, check this is installed.

CodePudding user response:

I would suggest rolling tensorflow back to a previous stable version, in this case. It might be a bug with the current version.

  • Related