grenade-0.1.0: Practical Deep Learning in Haskell

Copyright(c) Huw Campbell 2016-2017
LicenseBSD2
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

Grenade.Layers.Tanh

Description

 

Synopsis

Documentation

data Tanh Source #

A Tanh layer. A layer which can act between any shape of the same dimension, perfoming a tanh function.

Constructors

Tanh 

Instances

Show Tanh Source # 

Methods

showsPrec :: Int -> Tanh -> ShowS #

show :: Tanh -> String #

showList :: [Tanh] -> ShowS #

Serialize Tanh Source # 

Methods

put :: Putter Tanh #

get :: Get Tanh #

UpdateLayer Tanh Source # 
((~) Shape a b, SingI Shape a) => Layer Tanh a b Source # 

Associated Types

type Tape Tanh (a :: Shape) (b :: Shape) :: * Source #

Methods

runForwards :: Tanh -> S a -> (Tape Tanh a b, S b) Source #

runBackwards :: Tanh -> Tape Tanh a b -> S b -> (Gradient Tanh, S a) Source #

type Gradient Tanh Source # 
type Gradient Tanh = ()
type Tape Tanh a b Source # 
type Tape Tanh a b = S a