pyro-ppl/pyro
Ver no GitHubFeature request: Prohibit passing negative numbers to plate sizes
Open
#3.407 aberto em 24 de out. de 2024
help wantedusability
Métricas do repositório
- Stars
- (8.211 stars)
- Métricas de merge de PR
- (Mesclagem média 10d 19h) (1 fundiu PR em 30d)
Description
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.