nemos.callbacks.CallbackList#
- class nemos.callbacks.CallbackList(callbacks=None)[source]#
Bases:
CallbackComposite callback that dispatches each hook to all registered callbacks.
Methods
__init__([callbacks])on_batch_begin(ctx)Dispatch batch-begin hook to all callbacks.
on_batch_end(ctx)Dispatch batch-end hook to all callbacks.
on_pass_begin(ctx)Dispatch pass-begin hook to all callbacks.
on_pass_end(ctx)Dispatch pass-end hook to all callbacks.
on_train_begin(ctx)Dispatch train-begin hook to all callbacks.
on_train_end(ctx)Dispatch train-end hook to all callbacks.
- on_batch_begin(ctx)[source]#
Dispatch batch-begin hook to all callbacks.
- Return type:
- Parameters:
ctx (TrainingContext)
- on_batch_end(ctx)[source]#
Dispatch batch-end hook to all callbacks.
- Return type:
- Parameters:
ctx (TrainingContext)
- on_pass_begin(ctx)[source]#
Dispatch pass-begin hook to all callbacks.
- Return type:
- Parameters:
ctx (TrainingContext)
- on_pass_end(ctx)[source]#
Dispatch pass-end hook to all callbacks.
- Return type:
- Parameters:
ctx (TrainingContext)
- on_train_begin(ctx)[source]#
Dispatch train-begin hook to all callbacks.
- Return type:
- Parameters:
ctx (TrainingContext)
- on_train_end(ctx)[source]#
Dispatch train-end hook to all callbacks.
- Return type:
- Parameters:
ctx (TrainingContext)