hasktorch-indef-0.0.1.0: Core Hasktorch abstractions wrapping FFI bindings

Copyright(c) Sam Stites 2017
LicenseBSD3
Maintainersam@stites.io
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

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

Description

 
Synopsis

Documentation

mean Source #

Arguments

:: Dynamic 
-> Word

dimension to operate over

-> Dynamic 

Take the mean in the specified dimension.

mean_ Source #

Arguments

:: Dynamic 
-> Word

dimension to operate over

-> IO () 

Inplace mean

std Source #

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.

std_ Source #

Arguments

:: Dynamic 
-> Word

dimension to operate over

-> KeepDim 
-> Bool 
-> IO () 

Infix version of std.

var Source #

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.

var_ Source #

Arguments

:: Dynamic 
-> Word

dimension to operate over

-> KeepDim 
-> Bool 
-> IO () 

Infix version of var.

norm Source #

Arguments

:: Dynamic 
-> HsReal 
-> Word

dimension to operate over

-> Dynamic 

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

norm_ Source #

Arguments

:: Dynamic 
-> HsReal 
-> Word

dimension to operate over

-> IO () 

Inplace version of norm

renorm Source #

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

dist Source #

Arguments

:: Dynamic

tensor x

-> Dynamic

tensor y

-> HsReal
p
-> HsAccReal 

Returns the p-norm of x - y.

meanall :: Dynamic -> HsAccReal Source #

Returns the mean of all elements.

varall :: Dynamic -> Int -> HsAccReal Source #

Returns the variance of all elements.

stdall :: Dynamic -> Int -> HsAccReal Source #

Returns the standard deviation of all elements.

normall Source #

Arguments

:: Dynamic

tensor of values to norm over

-> HsReal
p
-> HsAccReal 

Returns the p-norm of all elements.