Remove In-place operations
#40
by
yyyyifan
- opened
Remove In-place operations such as "+=" or "-=". This would case pytorch error when the requires_grad =True.
RuntimeError: a leaf Variable that requires grad is being used in an in-place operation.