Abstract base class for wrapping LibTorch C++ optimizers.
optimizer_ignite(
name = NULL,
...,
private = NULL,
active = NULL,
parent_env = parent.frame()
)
(optional) name of the optimizer
Pass any number of fields or methods. You should at least define
the initialize
and step
methods. See the examples section.
(optional) a list of private methods for the optimizer.
(optional) a list of active methods for the optimizer.
used to capture the right environment to define the class. The default is fine for most situations.