updated args

This commit is contained in:
William Falcon 2019-06-25 20:24:43 -04:00
parent 440f47b864
commit 45331b396f
1 changed files with 4 additions and 1 deletions

View File

@ -213,7 +213,10 @@ class Trainer(TrainerIO):
self.prog_bar.update(1)
# give model a chance to do something with the outputs
val_results = model.module.validation_end(outputs)
if self.data_parallel:
val_results = model.module.validation_end(outputs)
else:
val_results = model.validation_end(output)
# enable train mode again
model.train()