Bluefog-Lib / bluefog

Distributed and decentralized training framework for PyTorch over graph
https://bluefog-lib.github.io/bluefog/
Apache License 2.0
291 stars 71 forks source link

Forward hook bluefog #23

Closed Bluefog-Lib closed 4 years ago

Bluefog-Lib commented 4 years ago

Before we trigger the communication after the backward gradient computation is finished in each layer. Actually we can put it at the end of forward computation:

w_{i+1} = neighborallreduce(w{i}) - lr * gradient(w_{i})