Skip to content

Commit

Permalink
Fix PipelineEngine.eval_batch result
Browse files Browse the repository at this point in the history
  • Loading branch information
nrailg committed Apr 20, 2023
1 parent 4de4d2a commit 7a632c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/runtime/pipe/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def _bcast_pipe_scalar(self, data, src_rank=None, dtype=torch.float32):
assert src_rank in self.grid.pp_group

if self.global_rank == src_rank:
result = data.clone().detach()
result = data.clone().detach().type(dtype).to(self.device)
else:
result = torch.Tensor([0.]).type(dtype).to(self.device)

Expand Down

0 comments on commit 7a632c6

Please sign in to comment.