Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
type CppOptimizerRef = ForeignPtr Optimizer Source #
data CppOptimizerState option Source #
CppOptimizerState option CppOptimizerRef |
Instances
CppOptimizer option => Optimizer (CppOptimizerState option) Source # | |
Defined in Torch.Optim.CppOptim step :: LearningRate -> Gradients -> [Tensor] -> CppOptimizerState option -> ([Tensor], CppOptimizerState option) Source # runStep :: Parameterized model => model -> CppOptimizerState option -> Loss -> LearningRate -> IO (model, CppOptimizerState option) Source # runStep' :: Parameterized model => model -> CppOptimizerState option -> Gradients -> LearningRate -> IO (model, CppOptimizerState option) Source # |
stepWithGenerator :: CppOptimizerState option -> ForeignPtr Generator -> ([Tensor] -> ForeignPtr Generator -> IO (Tensor, ForeignPtr Generator)) -> IO (Tensor, ForeignPtr Generator) Source #
class CppOptimizer option where Source #
initOptimizer :: Parameterized model => option -> model -> IO (CppOptimizerState option) Source #
unsafeStep :: Parameterized model => model -> CppOptimizerState option -> Tensor -> IO (model, CppOptimizerState option) Source #
Instances
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 | |
|