mindelec.solver.LossAndTimeMonitor
- class mindelec.solver.LossAndTimeMonitor(data_size, per_print_times=1)[source]
Monitor the loss in training.
If the loss is NAN or INF, it will terminate training.
Note
If per_print_times is 0, do not print loss.
- Parameters
- Raises
ValueError – If data_size is not an integer or less than zero.
ValueError – If per_print_times is not an integer or less than zero.
- Supported Platforms:
Ascend