set dp as default backend
This commit is contained in:
parent
c67c84b443
commit
f650253cae
|
@ -271,11 +271,9 @@ class Trainer(TrainerIO):
|
||||||
# -----------------
|
# -----------------
|
||||||
# RUN VALIDATION STEP
|
# RUN VALIDATION STEP
|
||||||
# -----------------
|
# -----------------
|
||||||
pdb.set_trace()
|
|
||||||
if self.use_ddp:
|
if self.use_ddp:
|
||||||
output = model(data_batch, batch_i)
|
output = model(data_batch, batch_i)
|
||||||
elif self.use_dp:
|
elif self.use_dp:
|
||||||
pdb.set_trace()
|
|
||||||
output = model(data_batch, batch_i)
|
output = model(data_batch, batch_i)
|
||||||
output = reduce_distributed_output(output, len(self.data_parallel_device_ids))
|
output = reduce_distributed_output(output, len(self.data_parallel_device_ids))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue