Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Torch.GraduallyTyped.NN.Loss
Documentation
Constructors
MSELoss |
Instances
Generic MSELoss Source # | |
Show MSELoss Source # | |
Eq MSELoss Source # | |
Ord MSELoss Source # | |
Defined in Torch.GraduallyTyped.NN.Loss | |
HasStateDict MSELoss Source # | |
Defined in Torch.GraduallyTyped.NN.Loss Methods fromStateDict :: (MonadIO m, MonadThrow m, MonadState StateDict m) => ModelSpec MSELoss -> StateDictKey -> m MSELoss Source # toStateDict :: (MonadThrow m, MonadState StateDict m) => StateDictKey -> MSELoss -> m () Source # | |
HasInitialize MSELoss generatorDevice MSELoss generatorDevice Source # | |
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 # | |
Defined in Torch.GraduallyTyped.NN.Loss | |
type Rep MSELoss Source # | |
type ModelSpec MSELoss Source # | |
Defined in Torch.GraduallyTyped.NN.Loss |