TensorFlow 2 preview is now has tf.__version__ >= "2.0"
parent
bc01f44075
commit
8d6a55f32c
|
@ -39,7 +39,7 @@
|
|||
"\n",
|
||||
"# TensorFlow ≥2.0-preview is required\n",
|
||||
"import tensorflow as tf\n",
|
||||
"assert hasattr(tf.compat, \"v1\")\n",
|
||||
"assert tf.__version__ >= \"2.0\"\n",
|
||||
"\n",
|
||||
"# Common imports\n",
|
||||
"import numpy as np\n",
|
||||
|
|
Loading…
Reference in New Issue