pyro-ppl / funsor

Functional tensors for probabilistic programming
https://funsor.pyro.ai
Apache License 2.0
236 stars 20 forks source link

Fix make_funsor factory and add a FUNSOR_TYPECHECK interpreter #480

Closed fritzo closed 3 years ago

fritzo commented 3 years ago

pair coded with @eb8680 @ordabayevy @fehiepsi

Note currently FUNSOR_TYPECHECK is enabled as an environment variable. To use in a jupyter notebook, try:

%env FUNSOR_TYPECHECK=1
import funsor  # only after setting environment variable