We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d281556 commit 9232338Copy full SHA for 9232338
ch01/tf1.py
@@ -1,5 +1,6 @@
1
-import tensorflow as tf
2
-assert tf.__version__.startswith('1.')
+import tensorflow.compat.v1 as tf
+tf.disable_v2_behavior()
3
+assert tf.__version__.startswith('2.')
4
5
# 1.创建计算图阶段
6
# 创建2个输入端子,指定类型和名字
0 commit comments