我在 tensorflow 中初始化了一个常量:hello = tf.constant('hello')在普通模式下,print(sess.run(hello).decode())以常量张量输出纯文本。然而,在急切执行模式下,上面的代码不起作用。如何在常量 Tensor hello 中打印纯文本?这个问题不是关于python b'str'或tf sess.run
添加回答
举报
0/150
提交
取消