pytorch
a11bc049 - Expand GRADIENT_IMPLEMENTED_FOR_COMPLEX to allow named tensors (#47289)

Commit
4 years ago
Expand GRADIENT_IMPLEMENTED_FOR_COMPLEX to allow named tensors (#47289) Summary: Complex-valued named tensors do not support backpropagation currently. This is due to `tools/autograd/gen_variable_type.py` not containing `alias` in `GRADIENT_IMPLEMENTED_FOR_COMPLEX` which is required to constructed named tensors. This fixes https://github.com/pytorch/pytorch/issues/47157. Also removed a duplicate `cholesky` in the list and added a test in `test_autograd.py`. Apologies, this is a duplicate of https://github.com/pytorch/pytorch/issues/47181 as I accidently removed my pytorch fork. cc: zou3519 anjali411 Pull Request resolved: https://github.com/pytorch/pytorch/pull/47289 Reviewed By: agolynski Differential Revision: D24706571 Pulled By: zou3519 fbshipit-source-id: 2cc48ce38eb180183c5b4ce2f8f4eef8bcac0316
Author
Parents
Loading