Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data LayerNormSpec (normalizedShape :: [Nat]) (dtype :: DType) (device :: (DeviceType, Nat)) where Source #
LayerNormSpec | |
|
Instances
Show (LayerNormSpec normalizedShape dtype device) Source # | |
Defined in Torch.Typed.NN.Normalization | |
Eq (LayerNormSpec normalizedShape dtype device) Source # | |
Defined in Torch.Typed.NN.Normalization (==) :: LayerNormSpec normalizedShape dtype device -> LayerNormSpec normalizedShape dtype device -> Bool Source # (/=) :: LayerNormSpec normalizedShape dtype device -> LayerNormSpec normalizedShape dtype device -> Bool Source # | |
(TensorOptions normalizedShape dtype device, RandDTypeIsValid device dtype) => Randomizable (LayerNormSpec normalizedShape dtype device) (LayerNorm normalizedShape dtype device) Source # | |
Defined in Torch.Typed.NN.Normalization |
data LayerNorm (normalizedShape :: [Nat]) (dtype :: DType) (device :: (DeviceType, Nat)) where Source #
LayerNorm | |
|
Instances
Generic (LayerNorm normalizedShape dtype device) Source # | |
Defined in Torch.Typed.NN.Normalization | |
Show (LayerNorm normalizedShape dtype device) Source # | |
Parameterized (LayerNorm normalizedShape dtype device) Source # | |
Defined in Torch.Typed.NN.Normalization type Parameters (LayerNorm normalizedShape dtype device) :: [Type] Source # flattenParameters :: LayerNorm normalizedShape dtype device -> HList (Parameters (LayerNorm normalizedShape dtype device)) Source # replaceParameters :: LayerNorm normalizedShape dtype device -> HList (Parameters (LayerNorm normalizedShape dtype device)) -> LayerNorm normalizedShape dtype device Source # | |
(TensorOptions normalizedShape dtype device, RandDTypeIsValid device dtype) => Randomizable (LayerNormSpec normalizedShape dtype device) (LayerNorm normalizedShape dtype device) Source # | |
Defined in Torch.Typed.NN.Normalization | |
(IsSuffixOf normalizedShape shape, KnownShape normalizedShape) => HasForward (LayerNorm normalizedShape dtype device) (Tensor device dtype shape) (Tensor device dtype shape) Source # | |
type Rep (LayerNorm normalizedShape dtype device) Source # | |
Defined in Torch.Typed.NN.Normalization type Rep (LayerNorm normalizedShape dtype device) = D1 ('MetaData "LayerNorm" "Torch.Typed.NN.Normalization" "hasktorch-0.2.0.0-F6yFRaDiRF49lpq95SVuR8" 'False) (C1 ('MetaCons "LayerNorm" 'PrefixI 'True) (S1 ('MetaSel ('Just "layerNormWeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Parameter device dtype normalizedShape)) :*: (S1 ('MetaSel ('Just "layerNormBias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Parameter device dtype normalizedShape)) :*: S1 ('MetaSel ('Just "layerNormEps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double)))) | |
type Parameters (LayerNorm normalizedShape dtype device) Source # | |
Defined in Torch.Typed.NN.Normalization type Parameters (LayerNorm normalizedShape dtype device) = GParameters (Rep (LayerNorm normalizedShape dtype device)) |
layerNormForward :: forall normalizedShape shape dtype device. (IsSuffixOf normalizedShape shape, KnownShape normalizedShape) => LayerNorm normalizedShape dtype device -> Tensor device dtype shape -> Tensor device dtype shape Source #