mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-20 04:32:47 +00:00
run pre-commit
This commit is contained in:
parent
d31f9e4d0f
commit
c8e13a9403
@ -98,7 +98,7 @@ class BaseProducer:
|
|||||||
self.dataloader.sampler.set_epoch(episode)
|
self.dataloader.sampler.set_epoch(episode)
|
||||||
for i, batch in enumerate(self.dataloader):
|
for i, batch in enumerate(self.dataloader):
|
||||||
if i >= num_valid_microbatches:
|
if i >= num_valid_microbatches:
|
||||||
break
|
break
|
||||||
outputs = self.rollout(**batch)
|
outputs = self.rollout(**batch)
|
||||||
print(f"[P{self.producer_idx}] Send data {[(k, v.shape) for k, v in outputs.items()]}")
|
print(f"[P{self.producer_idx}] Send data {[(k, v.shape) for k, v in outputs.items()]}")
|
||||||
outputs = pre_send(outputs)
|
outputs = pre_send(outputs)
|
||||||
|
Loading…
Reference in New Issue
Block a user