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.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment