Skip to content

Commit

Permalink
Maybe we don't need the mutex for put?
Browse files Browse the repository at this point in the history
  • Loading branch information
bichengying committed Jun 6, 2020
1 parent 36a151b commit f496fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluefog/torch/optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def hook(module, *unused):
if p.requires_grad:
handle = bf.win_put_async(
tensor=p.data, name=parent_name+'.'+name,
dst_weights=self.dst_weights, require_mutex=True)
dst_weights=self.dst_weights, require_mutex=False)
self._handles[p] = handle
return hook

Expand Down

0 comments on commit f496fb3

Please sign in to comment.