google-deepmind / torch-distributions

Probability distributions, wrapped for Torch.
BSD 3-Clause "New" or "Revised" License
61 stars 25 forks source link

Avoid new tensor due to calling cumsum() in cat.rnd() #25

Open jucor opened 10 years ago

jucor commented 10 years ago

Not good. Should work around using cumsum(), since this creates a new temporary tensor.