sum(x, axis=None, keepdims=False)
지정된 축을 따라 텐서의 값을 더합니다.
인수
False
인 경우, 텐서의 랭크는 1이 줄어듭니다. True
인 경우, 줄어든 차원은 길이가 1로 유지됩니다.반환값
x
를 더한 값과 텐서를 반환합니다.
prod(x, axis=None, keepdims=False)
텐서 내의 값을 지정된 축을 따라 곱합니다.
인수
False
인 경우, 텐서의 랭크는 1이 줄어듭니다. True
인 경우, 줄어든 차원은 길이가 1로 유지됩니다.반환값
x
의 곱셈값과 텐서를 반환합니다.
cumsum(x, axis=0)
텐서 내의 값을 지정된 축을 따라 누적 합니다.
인수
반환값
A tensor of the cumulative sum of values of x
along axis
.
cumprod(x, axis=0)
Cumulative product of the values in a tensor, alongside the specified axis.
인수
반환값
A tensor of the cumulative product of values of x
along axis
.
var(x, axis=None, keepdims=False)
Variance of a tensor, alongside the specified axis.
인수
keepdims
is False
, the rank of the tensor is reduced by 1. If keepdims
is True
, the reduced dimension is retained with length 1.반환값
A tensor with the variance of elements of x
.