Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class CppOptimizer option where Source #
initOptimizer :: forall model tensors. (Parameterized model, HMap' ToDependent (Parameters model) tensors, Castable (HList tensors) [ATenTensor]) => option -> model -> IO (CppOptimizerState option (Parameters model)) Source #
unsafeStep :: forall model dev dtype lossShape tensors res. (Parameterized model, HMap' ToDependent (Parameters model) tensors, HMap' ToParameter tensors (Parameters model), Castable (HList tensors) [ATenTensor]) => model -> CppOptimizerState option (Parameters model) -> Tensor dev dtype lossShape -> IO (model, CppOptimizerState option (Parameters model)) Source #
Instances
data ToParameter Source #
Instances
Apply' ToParameter (Tensor dev dtype shape) (Parameter dev dtype shape) Source # | |
Defined in Torch.Typed.Optim.CppOptim |
data CppOptimizerState option (params :: [*]) Source #
CppOptimizerState option CppOptimizerRef |
type CppOptimizerRef = ForeignPtr Optimizer Source #
runStep :: (CppOptimizer option, Parameterized model, HMap' ToDependent (Parameters model) tensors, HMap' ToParameter tensors (Parameters model), Castable (HList tensors) [ATenTensor]) => model -> CppOptimizerState option (Parameters model) -> Loss dev dtype -> IO (model, CppOptimizerState option (Parameters model)) Source #
data AdagradOptions Source #
Instances
Show AdagradOptions Source # | |
Defined in Torch.Optim.CppOptim | |
Default AdagradOptions Source # | |
Defined in Torch.Optim.CppOptim def :: AdagradOptions Source # | |
Eq AdagradOptions Source # | |
Defined in Torch.Optim.CppOptim (==) :: AdagradOptions -> AdagradOptions -> Bool Source # (/=) :: AdagradOptions -> AdagradOptions -> Bool Source # | |
CppOptimizer AdagradOptions Source # | |
Defined in Torch.Optim.CppOptim initOptimizer :: Parameterized model => AdagradOptions -> model -> IO (CppOptimizerState AdagradOptions) Source # unsafeStep :: Parameterized model => model -> CppOptimizerState AdagradOptions -> Tensor -> IO (model, CppOptimizerState AdagradOptions) Source # |
data AdamOptions Source #
Instances
data AdamwOptions Source #
AdamwOptions | |
|
Instances
data LbfgsOptions Source #
LbfgsOptions | |
|
Instances
data RmspropOptions Source #
RmspropOptions | |
|
Instances
data SGDOptions Source #
SGDOptions | |
|