2017년/machine learning
텐서플로우의 행렬 ,shape에 대해/.
위지원
2017. 9. 18. 15:53
a=tf.constant([[1,2,3]]) or a=tf.constant([(((1,2,3)))])
print a.get_shape()
#(1,3) ,둘다 같은 결과가 나온다.
b=tf.constant([1,2,3])
print b.get_shape()
#(3,)
c=tf.constant([[[1,2,3]]])
print c.get_shape()
#(1,1,3)
shape는 행렬의 차원이라고한다