def validate(self, ds_idx=1, dl=None, cbs=None):
    if (dl is None):
        dl = self.dls[ds_idx]
    with self.added_cbs(cbs), self.no_logging(), self.no_mbar():
        self(_before_epoch)
        self._do_epoch_validate(ds_idx, dl)
        self(_after_epoch)
    return getattr(self, 'final_record', None)
def validate(self, ds_idx=1, dl=None, cbs=None):
    if (dl is None):
        dl = self.dls[ds_idx]
    with self.added_cbs(cbs), self.no_logging(), self.no_mbar():
        self(_before_epoch)
        self._do_epoch_validate(ds_idx, dl)
        self(_after_epoch)
    return getattr(self, 'final_record', None)