mindelec.vision.MonitorTrain
- class mindelec.vision.MonitorTrain(per_print_times=1, summary_dir='./summary_train')[source]
Loss monitor for train.
Note
If per_print_times is 0, do not print loss.
- Parameters
- Supported Platforms:
Ascend
Examples
>>> from mindelec.vision import MonitorTrain >>> per_print_times = 1 >>> summary_dir = './summary_train' >>> MonitorTrain(per_print_times, summary_dir)