pyro-ppl / brmp

Bayesian Regression Models in Pyro
Apache License 2.0
69 stars 8 forks source link

Add assertion message for asserts in generated code #38

Closed neerajprad closed 4 years ago

neerajprad commented 4 years ago

While looking into #37, I realized that it is hard to debug the failure because it is not clear where the AssertionError is coming from. Since this is generated code, there is no traceback to look at. Adding assertion messages to generated code will make it somewhat easier to know which assertion is failing, and help with debugging.