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.Static.NN.Activation

Description

 
Synopsis

Documentation

_pReLU_updateOutput :: Tensor d -> Tensor d -> Tensor d -> IO () Source #

pReLU updateOutput

_pReLU_updateGradInput :: Tensor d -> Tensor d -> Tensor d -> Tensor d -> IO () Source #

pReLU updateGradInput

_pReLU_accGradParameters :: Tensor d -> Tensor d -> Tensor d -> Tensor d -> Tensor d -> Double -> IO () Source #

pReLU accGradParameters

_rReLU_updateOutput :: Tensor d -> Tensor d -> Tensor d -> Double -> Double -> Bool -> Bool -> Generator -> IO () Source #

rReLU updateOutput

_rReLU_updateGradInput :: Tensor d -> Tensor d -> Tensor d -> Tensor d -> Double -> Double -> Bool -> Bool -> IO () Source #

rReLU updateGradInput

_eLU_updateOutput :: Tensor d -> Tensor d -> Double -> Double -> Bool -> IO () Source #

eLU updateOutput

_eLU_updateGradInput :: Tensor d -> Tensor d' -> Tensor d'' -> Double -> Double -> IO () Source #

eLU updateGradInput

_leakyReLU_updateOutput :: Tensor d -> Tensor d -> Double -> Bool -> IO () Source #

leakyReLU updateOutput

_leakyReLU_updateGradInput :: Tensor d -> Tensor d -> Tensor d -> Double -> Bool -> IO () Source #

leakyReLU updateGradInput

relu :: Reifies s W => Dimensions d => BVar s (Tensor d) -> BVar s (Tensor d) Source #

ReLU activation function

reluIO :: Dimensions d => Tensor d -> IO (Tensor d, Tensor d -> IO (Tensor d)) Source #

ReLU activation function

threshold Source #

Arguments

:: Reifies s W 
=> Dimensions d 
=> Double

threshold

-> Double

replacement value

-> BVar s (Tensor d)

input

-> BVar s (Tensor d)

output

run a threshold function againts two BVar variables

thresholdIO Source #

Arguments

:: Dimensions d 
=> Double

threshold

-> Double

replacement value

-> Tensor d

input

-> IO (Tensor d, Tensor d -> IO (Tensor d))

output

run a threshold function in IO