【发布时间】:2021-02-11 10:10:26
【问题描述】:
当我尝试将两个数字相乘时,在 jupyter 中低于错误。
import tensorflow as tf
tf.executing_eagerly()
x = tf.constant(2)
y = tf.constant(3)
multi = x*y
with tf.Session() as sess:
print(sess.run(multi))
## error
File "<ipython-input-35-755ab78de6c6>", line 5
print(sess.run(multi))
^
IndentationError: expected an indented block
【问题讨论】:
-
不要链接图片,复制问题中的代码并将其格式化为代码
-
@Ben2209 感谢重播,我已经把代码。
标签: python android python-2.7 tensorflow2.0 tensorflow-lite