pyro icon indicating copy to clipboard operation
pyro copied to clipboard

Feature request: Prohibit passing negative numbers to plate sizes

Open deoxyribose opened this issue 1 year ago • 0 comments

Issue Description

Plate primitives scale log-likelihood terms by size/batch_size. But plates allow negative numbers without a warning or assert. Something like assert size > 0 above https://github.com/pyro-ppl/pyro/blob/dev/pyro/primitives.py#L424 might be worth adding.

deoxyribose avatar Oct 24 '24 12:10 deoxyribose