Expose alias multinomial methods to ATen (#17904)
authorvishwakftw <cs15btech11043@iith.ac.in>
Tue, 2 Apr 2019 14:53:34 +0000 (07:53 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 2 Apr 2019 14:56:41 +0000 (07:56 -0700)
commitbaac5489a832a7394901db5db0a72999f00e9940
tree1fa2464ced4eaddc05761665c385d7b78c3ded8b
parent5ade96fc8461cf40f8bddd9c1a562ebd0c657a0c
Expose alias multinomial methods to ATen (#17904)

Summary:
This PR exposes the multinomialAliasSetup and multinomialAliasDraw methods.

cc: neerajprad
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17904

Differential Revision: D14700205

Pulled By: ezyang

fbshipit-source-id: 16462fb1f1ef1d560fd586632ea356b23e966ee3
aten/src/ATen/Declarations.cwrap
aten/src/ATen/native/LegacyDefinitions.cpp
aten/src/ATen/native/native_functions.yaml
aten/src/TH/generic/THTensorRandom.cpp
aten/src/TH/generic/THTensorRandom.h
aten/src/THC/generic/THCTensorRandom.cu
aten/src/THC/generic/THCTensorRandom.h
test/test_cuda.py
test/test_torch.py