| Copyright | (c) Huw Campbell 2016-2017 |
|---|---|
| License | BSD2 |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell98 |
Grenade.Layers.Crop
Description
Documentation
data Crop :: Nat -> Nat -> Nat -> Nat -> * where Source #
A cropping layer for a neural network.
Instances
| Show (Crop cropLeft cropTop cropRight cropBottom) Source # | |
| UpdateLayer (Crop l t r b) Source # | |
| (KnownNat cropLeft, KnownNat cropTop, KnownNat cropRight, KnownNat cropBottom, KnownNat inputRows, KnownNat inputColumns, KnownNat outputRows, KnownNat outputColumns, (~) Nat ((-) ((-) inputRows cropTop) cropBottom) outputRows, (~) Nat ((-) ((-) inputColumns cropLeft) cropRight) outputColumns) => Layer (Crop cropLeft cropTop cropRight cropBottom) (D2 inputRows inputColumns) (D2 outputRows outputColumns) Source # | A two dimentional image can be cropped. |
| (KnownNat cropLeft, KnownNat cropTop, KnownNat cropRight, KnownNat cropBottom, KnownNat inputRows, KnownNat inputColumns, KnownNat outputRows, KnownNat outputColumns, KnownNat channels, KnownNat (* inputRows channels), KnownNat (* outputRows channels), (~) Nat ((+) ((+) outputRows cropTop) cropBottom) inputRows, (~) Nat ((+) ((+) outputColumns cropLeft) cropRight) inputColumns) => Layer (Crop cropLeft cropTop cropRight cropBottom) (D3 inputRows inputColumns channels) (D3 outputRows outputColumns channels) Source # | A two dimentional image can be cropped. |
| type Gradient (Crop l t r b) Source # | |
| type Tape (Crop cropLeft cropTop cropRight cropBottom) (D2 inputRows inputColumns) (D2 outputRows outputColumns) Source # | |
| type Tape (Crop cropLeft cropTop cropRight cropBottom) (D3 inputRows inputColumns channels) (D3 outputRows outputColumns channels) Source # | |