Skip to content

Commit

Permalink
torch: fix hang after int tensor push_pull (#358)
Browse files Browse the repository at this point in the history
mark task done after averaging an int tensor. This fixes a bug
introduced in 46944e8.

Signed-off-by: Yulu Jia <[email protected]>
  • Loading branch information
pleasantrabbit committed Jan 18, 2021
1 parent 46944e8 commit 6957bc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions byteps/torch/ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ void StartTask(::torch::Tensor tensor, ::torch::Tensor output, int average,
#if TORCH_VERSION >= 1005000000
if (isIntegralType(output.scalar_type())) {
output.floor_divide_(byteps_size());
handle_manager.MarkDone(handle, status);
return;
}
#endif
Expand Down

0 comments on commit 6957bc3

Please sign in to comment.