mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-28 13:20:31 +08:00
updated args
This commit is contained in:
1 parent
88606c581f
commit
440f47b864
1 file changed
+4
-1
@@ -196,7 +196,10 @@ class Trainer(TrainerIO):
|
||||
# -----------------
|
||||
# RUN VALIDATION STEP
|
||||
# -----------------
|
||||
output = model(data_batch, batch_i)
|
||||
if self.data_parallel:
|
||||
output = model(data_batch, batch_i)
|
||||
else:
|
||||
output = model.validation_step(data_batch, batch_i)
|
||||
|
||||
# when DP, we need to aggregate the scalars we received as outputs
|
||||
# use mean as the reduce function
|
||||
|
||||
Reference in new issue
Block a user