Skip to content

Commit

Permalink
1bit: update wd mom (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperzhong committed Jun 23, 2020
1 parent ae30478 commit c507e14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion byteps/mxnet/compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def decompress(self, tensor, ctx, *args, **kwargs):
nd._internal._mul_scalar(x, self.wd, out=self.cache)
self.mom += self.cache
nd._internal._mul_scalar(self.mom, self.mu, out=self.mom)
tensor += self.mom + self.cache
tensor += self.mom
tensor += self.cache
return self.compressor.decompress(tensor, ctx)


Expand Down

0 comments on commit c507e14

Please sign in to comment.