Torch.GraduallyTyped.NN.Loss
data MSELoss Source #
Constructors
Defined in Torch.GraduallyTyped.NN.Loss
Associated Types
type Rep MSELoss :: Type -> Type Source #
Methods
from :: MSELoss -> Rep MSELoss x Source #
to :: Rep MSELoss x -> MSELoss Source #
showsPrec :: Int -> MSELoss -> ShowS Source #
show :: MSELoss -> String Source #
showList :: [MSELoss] -> ShowS Source #
(==) :: MSELoss -> MSELoss -> Bool Source #
(/=) :: MSELoss -> MSELoss -> Bool Source #
compare :: MSELoss -> MSELoss -> Ordering Source #
(<) :: MSELoss -> MSELoss -> Bool Source #
(<=) :: MSELoss -> MSELoss -> Bool Source #
(>) :: MSELoss -> MSELoss -> Bool Source #
(>=) :: MSELoss -> MSELoss -> Bool Source #
max :: MSELoss -> MSELoss -> MSELoss Source #
min :: MSELoss -> MSELoss -> MSELoss Source #
fromStateDict :: (MonadIO m, MonadThrow m, MonadState StateDict m) => ModelSpec MSELoss -> StateDictKey -> m MSELoss Source #
toStateDict :: (MonadThrow m, MonadState StateDict m) => StateDictKey -> MSELoss -> m () Source #
initialize :: MonadThrow m => ModelSpec MSELoss -> Generator generatorDevice -> m (MSELoss, Generator generatorDevice) Source #
forward :: MonadThrow m => MSELoss -> (Tensor predGradient predLayout predDevice predDataType predShape, Tensor targetGradient targetLayout targetDevice targetDataType targetShape) -> Generator generatorDevice -> m (output, Generator generatorDevice) Source #