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.Layers

Description

Miscellaneous layer functions.

Synopsis

Documentation

flattenBP :: (Reifies s W, KnownDim (Product d), Dimensions (d :: [Nat])) => BVar s (Tensor d) -> BVar s (Tensor '[Product d]) Source #

A backpropable flatten operation

flattenBPBatch :: (Reifies s W, All KnownDim '[Product d, bs], Dimensions d) => Product (bs :+ d) ~ Product '[bs, Product d] => BVar s (Tensor (bs :+ d)) -> BVar s (Tensor '[bs, Product d]) Source #

A backpropable flatten operation with a batch dimension

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

sparseLinear forward pass (updates the output tensor)

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

sparseLinear backward-update (updates the layer and bias tensors). Called accGradParameters in C to indicate accumulating the gradient parameters.

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

sparseLinear zeroGradParameters

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

sparseLinear updateParameters

_gatedLinear_updateOutput :: Tensor d -> Tensor d -> Int -> IO () Source #

gatedLinear forward pass (updates the output tensor)

_gatedLinear_updateGradInput :: Tensor d -> Tensor d -> Tensor d -> Int -> IO () Source #

gatedLinear backward-update (updates the layer and bias tensors)

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

gRUFused forward pass (updates the output tensor)

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

gRUFused backward-update (updates the layer and bias tensors)

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

lSTMFused forward pass (updates the output tensor)

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

lSTMFused backward-update (updates the layer and bias tensors)