先上代码:
import tensorflow as tf
x = tf.ones(shape=[100, 200], dtype=tf.int32, name='x')
y = tf.zeros(shape=[2, 3], dtype=tf.float32, name='y')
with tf.Session() as sess:
print(sess.run([x, y]))
输出结果如下:
如果我调试的时候想查看省略号代表的值是什么
只需要改成如下代码就行:
import tensorflow as tf
import numpy as np #借助numpy模块的set_pr
1