Hello Subho!



 Subho:

Turns out that I can use simple rejection sampling in my case. Thanks anyways.


Rejection sampling doesn’t parallelize naturally.  You would
therefore typically run the rejection-sampling loop individually
for each element of the vector you want to populate with random
deviates, thereby forgoing the benefits of using pytorch’s tensor
operations.
Best.
K. Frank