#全0和全1矩阵
v1 = tf.Variable(tf.zeros([3,3,3]), name="v1")
v2 = tf.Variable(tf.ones([10,5]), name="v2")#填充单值矩阵
v3 = tf.Variable(tf.fill([2,3], 9))
#常量矩阵
v4_1 = tf.constant([1, 2, 3, 4, 5, 6, 7])
v4_2 = tf.constant(-1.0, shape=[2, 3])
# 和v4_1形状一样的全1或全0矩阵
v5_1=tf.ones_like(v4_1)