Add determinant function on variable; Add backward on svd (#3816)

* determinant on variable

* svd bwd
This commit is contained in:
Tongzhou Wang
2017-12-01 13:22:46 -05:00
committed by Soumith Chintala
parent 80c8635a7e
commit c681b03d37
20 changed files with 424 additions and 20 deletions

View File

@ -54,7 +54,9 @@ UNPACK_SELF = "auto& self_ = reinterpret_cast<THPVariable*>(self)->cdata;"
# to add an appropriate wrap() overload in torch/csrc/autograd/utils/wrap_outputs.h.
SUPPORTED_RETURN_TYPES = {
'Tensor', 'std::tuple<Tensor,Tensor>',
'std::tuple<Tensor,Tensor,Tensor>', 'std::vector<Tensor>',
'std::tuple<Tensor,Tensor,Tensor>',
'std::tuple<Tensor,Tensor,Tensor,Tensor>',
'std::vector<Tensor>',
'Scalar', 'bool', 'int64_t', 'void*'
}