mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-28 13:20:31 +08:00
clean up dead code
This commit is contained in:
1 parent
4b31f3d4bf
commit
0bfe0a993a
1 file changed
+5
-5
@@ -209,11 +209,11 @@ class Trainer(TrainerIO):
|
||||
# -----------------
|
||||
# RUN VALIDATION STEP
|
||||
# -----------------
|
||||
if self.data_parallel:
|
||||
output = model(data_batch, batch_i)
|
||||
output = reduce_distributed_output(output, len(self.data_parallel_device_ids))
|
||||
else:
|
||||
output = model.validation_step(data_batch, batch_i)
|
||||
# if self.data_parallel:
|
||||
# output = model(data_batch, batch_i)
|
||||
# output = reduce_distributed_output(output, len(self.data_parallel_device_ids))
|
||||
# else:
|
||||
output = model.validation_step(data_batch, batch_i)
|
||||
|
||||
outputs.append(output)
|
||||
|
||||
|
||||
Reference in new issue
Block a user