Remove redundant wrappers in torch.distributions (#16807)
authorvishwakftw <cs15btech11043@iith.ac.in>
Thu, 7 Feb 2019 09:10:54 +0000 (01:10 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 7 Feb 2019 09:13:55 +0000 (01:13 -0800)
commit2681af1c8ad1842e5fa43b280d204868da4c1bc4
tree14e10c7d5f6f76e469aeb8e27890e3314e014c4c
parent511f6fc2d5f3661e66ecc209574d568de7fa1cf3
Remove redundant wrappers in torch.distributions (#16807)

Summary:
Changelog:
- Remove torch.distributions.multivariate_normal._batch_diag : same functionality is provided by torch.diagonal
- Remove torch.distributions.lowrank_multivariate_normal._batch_vector_diag : same functionality is provided by torch.diag_embed
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16807

Differential Revision: D13985550

Pulled By: soumith

fbshipit-source-id: 25c7d00c52ff7f85e431134e9ce0d5dda453667b
torch/distributions/kl.py
torch/distributions/lowrank_multivariate_normal.py
torch/distributions/multivariate_normal.py