Torch.Indef.Dynamic.Tensor.Math.Reduce.Floating

Description

Synopsis

# Documentation

Arguments

 :: Dynamic -> Word dimension to operate over -> Dynamic

Take the mean in the specified dimension.

Arguments

 :: Dynamic -> Word dimension to operate over -> IO ()

Inplace mean

Arguments

 :: Dynamic -> Word dimension to operate over -> KeepDim -> Bool -> Dynamic

Performs the std operation over the specified dimension. The Bool parameter specifies whether the standard deviation should be used with n-1 or n. False normalizes by n-1, while True normalizes n.

Arguments

 :: Dynamic -> Word dimension to operate over -> KeepDim -> Bool -> IO ()

Infix version of std.

Arguments

 :: Dynamic -> Word dimension to operate over -> KeepDim -> Bool -> Dynamic

Get the variance over a tensor in the specified dimension. The Bool parameter specifies whether the standard deviation should be used with n-1 or n. False normalizes by n-1, while True normalizes n.

Arguments

 :: Dynamic -> Word dimension to operate over -> KeepDim -> Bool -> IO ()

Infix version of var.

Arguments

 :: Dynamic -> HsReal -> Word dimension to operate over -> Dynamic

Return the p-norms of the tensor, computed over dimension dim.

Arguments

 :: Dynamic -> HsReal -> Word dimension to operate over -> IO ()

Inplace version of norm

Arguments

 :: Dynamic x -> HsReal p -> Int dim -> HsReal maxnorm -> Dynamic res

Renormalizes the sub-Tensors along dimension dim such that they do not exceed norm maxnorm.

Equivalent to the following lua code: y = torch.renorm(x, p, dim, maxnorm). Returns a version of x with p-norms lower than maxnorm over non-dim dimensions. The dim argument is not to be confused with the argument of the same name in function norm. In this case, the p-norm is measured for each i-th sub-tensor (lua: x:select(dim, i)).

renorm_ :: Dynamic -> HsReal -> Int -> HsReal -> IO () Source #

inplace version of renorm

Arguments

 :: Dynamic tensor x -> Dynamic tensor y -> HsReal p -> HsAccReal

Returns the p-norm of x - y.

Returns the mean of all elements.

Returns the variance of all elements.

Returns the standard deviation of all elements.

Arguments

 :: Dynamic tensor of values to norm over -> HsReal p -> HsAccReal

Returns the p-norm of all elements.