tensorflow2查看具体tensor的值 一般来说直接print就可以了,会有如下结果但有时候会遇到不可抗力,这时候不要用tf.compat.v1,然后开会话去看了,直接用tf.print(diff)例子见图