我在 tensorflow 中初始化了一個常量:hello = tf.constant('hello')在普通模式下,print(sess.run(hello).decode())以常量張量輸出純文本。然而,在急切執行模式下,上面的代碼不起作用。如何在常量 Tensor hello 中打印純文本?這個問題不是關于python b'str'或tf sess.run
添加回答
舉報
0/150
提交
取消