paddlespeech.t2s.training.extensions.evaluator module
- class paddlespeech.t2s.training.extensions.evaluator.StandardEvaluator(model: Layer, dataloader: DataLoader)[source]
Bases:
Extension
- Attributes:
- name
Methods
__call__
([trainer])Main action of the extention.
finalize
(trainer)Action that is executed when training is done.
initialize
(trainer)Action that is executed once to get the corect trainer state.
on_error
(trainer, exc, tb)Handles the error raised during training before finalization.
evaluate
evaluate_core
- default_name = 'validation'
- name = None
- priority = 300
- trigger = (1, 'epoch')