as_torch_callback function

Convert to a TorchCallback

Convert to a TorchCallback

Converts an object to a TorchCallback.

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

Arguments

  • x: (any)

    Object to be converted.

  • clone: (logical(1))

    Whether to make a deep clone.

  • ...: (any)

    Additional arguments

Returns

TorchCallback.

See Also

Other Callback: TorchCallback, as_torch_callbacks(), callback_set(), mlr3torch_callbacks, mlr_callback_set, mlr_callback_set.checkpoint, mlr_callback_set.progress, mlr_callback_set.tb, mlr_callback_set.unfreeze, mlr_context_torch, t_clbk(), torch_callback()