Skip to content

Commit

Permalink
[bug] fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dunzeng committed Apr 4, 2022
1 parent e2d3cdf commit 2a24ecc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fedlab/core/communicator/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def append_tensor(self, tensor):

shape = list(tensor.shape)
slice = [tensor.numel(), len(shape)] + shape


tensor = tensor.view(-1)
if self.content is None:
self.content = deepcopy(tensor)
self.dtype = tensor.dtype
Expand Down

0 comments on commit 2a24ecc

Please sign in to comment.