hasktorch-gradually-typed-0.2.0.0: experimental project for hasktorch
Safe HaskellSafe-Inferred
LanguageHaskell2010

Torch.GraduallyTyped.NN.Loss

Documentation

data MSELoss Source #

Constructors

MSELoss 

Instances

Instances details
Generic MSELoss Source # 
Instance details

Defined in Torch.GraduallyTyped.NN.Loss

Associated Types

type Rep MSELoss :: Type -> Type Source #

Show MSELoss Source # 
Instance details

Defined in Torch.GraduallyTyped.NN.Loss

Eq MSELoss Source # 
Instance details

Defined in Torch.GraduallyTyped.NN.Loss

Ord MSELoss Source # 
Instance details

Defined in Torch.GraduallyTyped.NN.Loss

HasStateDict MSELoss Source # 
Instance details

Defined in Torch.GraduallyTyped.NN.Loss

HasInitialize MSELoss generatorDevice MSELoss generatorDevice Source # 
Instance details

Defined in Torch.GraduallyTyped.NN.Loss

Methods

initialize :: MonadThrow m => ModelSpec MSELoss -> Generator generatorDevice -> m (MSELoss, Generator generatorDevice) Source #

(Catch (predShape <+> targetShape), output ~ Tensor (predGradient <|> targetGradient) (predLayout <+> targetLayout) (predDevice <+> targetDevice) (predDataType <+> targetDataType) ('Shape ('[] :: [Dim (Name Symbol) (Size Nat)]))) => HasForward MSELoss (Tensor predGradient predLayout predDevice predDataType predShape, Tensor targetGradient targetLayout targetDevice targetDataType targetShape) generatorDevice output generatorDevice Source # 
Instance details

Defined in Torch.GraduallyTyped.NN.Loss

Methods

forward :: MonadThrow m => MSELoss -> (Tensor predGradient predLayout predDevice predDataType predShape, Tensor targetGradient targetLayout targetDevice targetDataType targetShape) -> Generator generatorDevice -> m (output, Generator generatorDevice) Source #

type Rep MSELoss Source # 
Instance details

Defined in Torch.GraduallyTyped.NN.Loss

type Rep MSELoss = D1 ('MetaData "MSELoss" "Torch.GraduallyTyped.NN.Loss" "hasktorch-gradually-typed-0.2.0.0-1KV1aIPzzbp6JpSr37tC1K" 'False) (C1 ('MetaCons "MSELoss" 'PrefixI 'False) (U1 :: Type -> Type))
type ModelSpec MSELoss Source # 
Instance details

Defined in Torch.GraduallyTyped.NN.Loss