DeepDarkFantasy-0.2017.4.9: A DSL for creating neural network.

Safe HaskellSafe
LanguageHaskell2010

DDF.WithDiff

Documentation

class Monoid r w => WithDiff r w where Source #

Minimal complete definition

withDiff

Methods

withDiff :: r h ((w -> x) -> w -> Diff x w) Source #

Instances

Lang r => WithDiff r Float Source # 

Methods

withDiff :: r h ((Float -> x) -> Float -> Diff x Float) Source #

Lang r => WithDiff r Double Source # 

Methods

withDiff :: r h ((Double -> x) -> Double -> Diff x Double) Source #

Lang r => WithDiff r () Source # 

Methods

withDiff :: r h ((() -> x) -> () -> Diff x ()) Source #

(Lang repr, WithDiff repr l, WithDiff repr r) => WithDiff repr (l, r) Source # 

Methods

withDiff :: repr h (((l, r) -> x) -> (l, r) -> Diff x (l, r)) Source #

Lang repr => ProdCon (WithDiff repr) l r Source # 

Methods

prodCon :: (WithDiff repr l, WithDiff repr r) :- WithDiff repr (l, r) Source #

withDiff1 :: (WithDiff repr w, DBI repr) => repr h (w -> x) -> repr h (w -> Diff x w) Source #

selfWithDiff :: (DBI r, WithDiff r w) => r h (w -> Diff w w) Source #