Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module exposes all Layers declared at TensorSafe.Layers.
Synopsis
- data Add :: ls1 -> ls2 -> Type
- data BatchNormalization :: Nat -> Nat -> Nat -> Type
- data Conv2D :: Nat -> Nat -> Nat -> Nat -> Nat -> Nat -> Type
- data Dense :: Nat -> Nat -> Type
- data Dropout :: Nat -> Nat -> Type
- data Flatten
- data GlobalAvgPooling2D
- data Input
- data LSTM :: Nat -> Bool -> Type
- data MaxPooling :: Nat -> Nat -> Nat -> Nat -> Type
- data Relu
- data Sigmoid
- data ZeroPadding2D :: Nat -> Nat -> Type
Documentation
data Add :: ls1 -> ls2 -> Type Source #
Adds the dimensions of the shapes to a list of values with shape D1
data BatchNormalization :: Nat -> Nat -> Nat -> Type Source #
A classic BatchNormalization layer with axis, momentum and epsilon parameters
Instances
Show (BatchNormalization a b c) Source # | |
Defined in TensorSafe.Layers.BatchNormalization showsPrec :: Int -> BatchNormalization a b c -> ShowS # show :: BatchNormalization a b c -> String # showList :: [BatchNormalization a b c] -> ShowS # | |
(KnownNat axis, KnownNat momentum, KnownNat epsilon) => Layer (BatchNormalization axis momentum epsilon) Source # | |
Defined in TensorSafe.Layers.BatchNormalization layer :: BatchNormalization axis momentum epsilon Source # compile :: BatchNormalization axis momentum epsilon -> InputShape -> CNetwork Source # |
data Conv2D :: Nat -> Nat -> Nat -> Nat -> Nat -> Nat -> Type Source #
A 2D Convolutional layer
data Dense :: Nat -> Nat -> Type Source #
A classic Dense, or FullyConnected, layer with input and output parameters.
data Dropout :: Nat -> Nat -> Type Source #
A Dropout layer with rate and seed arguments
Flattens the dimensions of the shapes to a list of values with shape D1
data GlobalAvgPooling2D Source #
A GlobalAvgPooling2D function
Instances
Show GlobalAvgPooling2D Source # | |
Defined in TensorSafe.Layers.GlobalAvgPooling2D showsPrec :: Int -> GlobalAvgPooling2D -> ShowS # show :: GlobalAvgPooling2D -> String # showList :: [GlobalAvgPooling2D] -> ShowS # | |
Layer GlobalAvgPooling2D Source # | |
Defined in TensorSafe.Layers.GlobalAvgPooling2D layer :: GlobalAvgPooling2D Source # compile :: GlobalAvgPooling2D -> InputShape -> CNetwork Source # |
Inputs the dimensions of the shapes to a list of values with shape D1
data LSTM :: Nat -> Bool -> Type Source #
A LSTM layer with a number of units and a option to return the original sequences.
data MaxPooling :: Nat -> Nat -> Nat -> Nat -> Type Source #
A 2D MaxPooling pooling that works for D2 and D3 shapes
Instances
Show (MaxPooling a b c d) Source # | |
Defined in TensorSafe.Layers.MaxPooling showsPrec :: Int -> MaxPooling a b c d -> ShowS # show :: MaxPooling a b c d -> String # showList :: [MaxPooling a b c d] -> ShowS # | |
(KnownNat kernelRows, KnownNat kernelColumns, KnownNat strideRows, KnownNat strideColumns) => Layer (MaxPooling kernelRows kernelColumns strideRows strideColumns) Source # | |
Defined in TensorSafe.Layers.MaxPooling layer :: MaxPooling kernelRows kernelColumns strideRows strideColumns Source # compile :: MaxPooling kernelRows kernelColumns strideRows strideColumns -> InputShape -> CNetwork Source # |
A ReLu activation function
data ZeroPadding2D :: Nat -> Nat -> Type Source #
A ZeroPadding2D layer with padding_rows and padding_cols arguments
Instances
Show (ZeroPadding2D a b) Source # | |
Defined in TensorSafe.Layers.ZeroPadding2D showsPrec :: Int -> ZeroPadding2D a b -> ShowS # show :: ZeroPadding2D a b -> String # showList :: [ZeroPadding2D a b] -> ShowS # | |
(KnownNat padding_rows, KnownNat padding_cols) => Layer (ZeroPadding2D padding_rows padding_cols) Source # | |
Defined in TensorSafe.Layers.ZeroPadding2D layer :: ZeroPadding2D padding_rows padding_cols Source # compile :: ZeroPadding2D padding_rows padding_cols -> InputShape -> CNetwork Source # |