DeepDarkFantasy-0.2017.8.11: A DSL for creating neural network.

DDF.WithDiff

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

Minimal complete definition

withDiff

Methods

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

Instances

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

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

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

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

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

withDiff1 :: (WithDiff r w, DBI r) => r h (w -> x) -> r h (w -> DiffType x w) Source #

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