If I am understanding correctly in basic_train.py L25: https://github.com/fastai/fastai_v1/blob/master/fastai/basic_train.py#L25, metrics are being computed for each batch even during training which is called in L71: https://github.com/fastai/fastai_v1/blob/master/fastai/basic_train.py#L71
However, we need metrics only during validation and not training.