1
고려해야 다음과 같은 코드 -tensorflow : reduce_max 기능은
바로 여기 keep_dims의 목적은 무엇a=tf.convert_to_tensor(np.array([[1001,1002],[3,4]]), dtype=tf.float32)
b=tf.reduce_max(a,reduction_indices=[1], keep_dims=True)
with tf.Session():
print b.eval()
? 나는 꽤 테스트하고 위
b=tf.reduce_max(a,reduction_indices=[1], keep_dims=False)
b=tf.expand_dims(b,1)
나는 어쩌면 잘못된 상응하는 대
,하지만 내 생각은 keep_dims가 false의 경우, 우리는 2 차원 coloumn 벡터를 얻을 것을 보았다. 그리고 keep_dims = True이면 우리는 2x1 행렬을가집니다. 그러나 그들은 어떻게 다른가요?