Copyright | (c) Sam Stites 2017 |
---|---|
License | BSD3 |
Maintainer | sam@stites.io |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- mean :: Dynamic -> Word -> Dynamic
- mean_ :: Dynamic -> Word -> IO ()
- std :: Dynamic -> Word -> KeepDim -> Bool -> Dynamic
- std_ :: Dynamic -> Word -> KeepDim -> Bool -> IO ()
- var :: Dynamic -> Word -> KeepDim -> Bool -> Dynamic
- var_ :: Dynamic -> Word -> KeepDim -> Bool -> IO ()
- norm :: Dynamic -> HsReal -> Word -> Dynamic
- norm_ :: Dynamic -> HsReal -> Word -> IO ()
- renorm :: Dynamic -> HsReal -> Int -> HsReal -> Dynamic
- renorm_ :: Dynamic -> HsReal -> Int -> HsReal -> IO ()
- dist :: Dynamic -> Dynamic -> HsReal -> HsAccReal
- meanall :: Dynamic -> HsAccReal
- varall :: Dynamic -> Int -> HsAccReal
- stdall :: Dynamic -> Int -> HsAccReal
- normall :: Dynamic -> HsReal -> HsAccReal
Documentation
Take the mean in the specified dimension.
Infix version of std
.
Infix version of var
.
Return the p
-norms of the tensor, computed over dimension dim
.
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)
).
Returns the p
-norm of x - y
.