Skip to contents

Converts an object to a TorchOptimizer.

Usage

as_torch_optimizer(x, clone = FALSE, ...)

Arguments

x

(any)
Object to convert to a TorchOptimizer.

clone

(logical(1))
Whether to make a deep clone. Default is FALSE.

...

(any)
Additional arguments. Currently used to pass additional constructor arguments to TorchOptimizer for objects of type torch_optimizer_generator.