fix cholesky call in potrs example (#15215)
authory0ast <joost@joo.st>
Sat, 15 Dec 2018 12:41:02 +0000 (04:41 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 15 Dec 2018 12:43:34 +0000 (04:43 -0800)
commit4bcb42549048771d563f136027fc7581faab7687
tree28b0997334709b836b170c237d5cbbb601221087
parent2b57bd4107fc0b1f5e1fddca1e80d86e69aaabda
fix cholesky call in potrs example (#15215)

Summary:
Cholesky by default returns the lower triangular matrix, see [docs](https://pytorch.org/docs/stable/torch.html#torch.cholesky).

However `torch.potrs` by default requires the upper triangular matrix. The naming of the variable `u` suggests that the example expects the upper to be returned, so I've added the flag to make that happen in the example.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15215

Differential Revision: D13476468

Pulled By: soumith

fbshipit-source-id: 7b68035f435a2b1be4d363b3f63e407394af949d
torch/_torch_docs.py