HEmile / storchastic

Stochastic Automatic Differentiation library for PyTorch.
GNU General Public License v3.0
180 stars 5 forks source link

Local backwards computation #76

Open HEmile opened 4 years ago

HEmile commented 4 years ago

A big downside in the design of Storchastic is how storch.backward uses the global state of the costs, instead of calling .backward on a cost.

Would we be able to design it like that? It would require knowing when to free the backwards buffers, and it would not use a single backwards pass. Might be inefficient...