DeepDarkFantasy-0.2017.4.9: 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 -> Diff x w) Source #
Instances
withDiff :: r h ((Float -> x) -> Float -> Diff x Float) Source #
withDiff :: r h ((Double -> x) -> Double -> Diff x Double) Source #
withDiff :: r h ((() -> x) -> () -> Diff x ()) Source #
withDiff :: repr h (((l, r) -> x) -> (l, r) -> Diff x (l, r)) Source #
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 #