Skip to content

Commit

Permalink
fix bug of p2p (#48045)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForFishes authored Nov 17, 2022
1 parent c20eb7a commit cb087be
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ def set_send_message(self, tensor):
[d.shape for d in tensor if not d.stop_gradient]
)
self.send_dtype_message = tuple(
[paddle_2_number(d.dtype) for d in tensor]
[
paddle_2_number(d.dtype)
for d in tensor
if not d.stop_gradient
]
)


Expand Down

0 comments on commit cb087be

Please sign in to comment.