学习维度转换
shape 计算维度
tf.shape(input,name = None)
案例1
a = tf.constant([i for i in range(20)],shape =[2,2,5...range(20)],shape =[2,2,5])
with tf.Session() as sess:
print (sess.run(tf.rank(a)))
结果 : 3
reshape重新的规则排列...)],shape =[2,2,5])
with tf.Session() as sess:
print (sess.run(tf.reshape(a,shape = [5,2,2])))
原始的数据