.FluxTraining
on
function
defined in module
FluxTraining
on(event::Event, phase::Phase, callback::AbstractCallback, learner)
Handle
event
with
Callback
callback
. By default, this event handler does nothing for a callback.
To see events which an
AbstractCallback
handles, use
methods(Training.on, (Any, Any, MyCallbackType, Any)
You can add event handlers to
Callback
s by implementing a method for
on
. See also
Callback
and
custom callbacks.
A method of
on
should
always dispatch on the callback type, i.e.
on(event, phase, cb::MyCallback, learner)
. It may also dispatch on specific
Event
s and
Phase
. It should not dispatch on a specific type for
learner
.
There are
26
methods for FluxTraining.on
:
The following pages link back here:
callbacks/callback.jl , callbacks/callbacks.jl , callbacks/conditional.jl , callbacks/custom.jl , callbacks/earlystopping.jl , callbacks/logging/checkpointer.jl , callbacks/logging/logger.jl , callbacks/metrics.jl , callbacks/recorder.jl , callbacks/sanitycheck.jl , callbacks/scheduler.jl , callbacks/trace.jl