commit | 7c10f1b932fbebdf0e9105f2848229ea22109747 | [log] [tgz] |
---|---|---|
author | Sam Gross <sgross@fb.com> | Mon Jul 03 12:33:30 2017 -0700 |
committer | Soumith Chintala <soumith@gmail.com> | Wed Jul 12 12:56:17 2017 -0400 |
tree | 0c26ad613a13143f23a8e52a1efda6ee976e7d11 | |
parent | 78ecc2d3b1b8f0e9b0d696a8d3e09424d1d34628 [diff] |
Avoid two unnecessary copies in addmm backward The `r_` and `t` tensors become different objects, even though they point to the same data. Avoid the copy whenever beta=0.