The input tensor.
Optional axis: number | number[]The dimension(s) along with to compute mean and variance. By default it reduces all dimensions.
Optional keepDims: booleanIf true, the moments have the same dimensionality as the input.
An object with two keys: mean and variance.
Generated using TypeDoc
Calculates the mean and variance of
x. The mean and variance are calculated by aggregating the contents ofxacrossaxes. Ifxis 1-D andaxes = [0]this is just the mean and variance of a vector.