Dimension of the tensor.
Number of all elements in the tensor.
Sizes of the tensor.
Elements in the tensor.
Returns a tensor reduced along all element with the callback function.
Reducing function
Optional
init: anyInitial value
Reduced tensor or value
Returns a tensor reduced along the axis with the callback function.
Reducing function
Initial value
Axis to be reduced. If negative, reduce along all elements.
Optional
keepdims: booleanKeep dimensions or not.
Reduced tensor or value
Repeat the elements n times along the axis this.
Repeated count
Optional
axis: numberAxis to be repeated
Repeat the elements n times along the axis this.
Repeated counts of each axis
Static
fromStatic
onesStatic
randnReturns a tensor initialized normal random values.
Sizes for each dimension
Optional
myu: numberMean value of the Tensor
Optional
sigma: numberVariance value of the Tensor
Tensor initialized normal random values
Static
randomReturns a tensor initialized uniform random values.
Sizes for each dimension
Optional
min: numberMinimum value of the Tensor
Optional
max: numberMaximum value of the Tensor
Tensor initialized uniform random values
Static
zeros
Tensor class