good first issuehelp wantedwarnings & errors
倉庫指標
- Star
- (8,211 star)
- PR 合併指標
- (平均合併 10天 19小時) (30 天內合併 1 個 PR)
描述
Users at PROBPROG 2018 requested more-specific error messages when models are invalid.
Specific improvements include:
- #1509 Print sample site information when
Distributioninputs are invalid. Currently it requires a debugger to see what line of the model is affected. - #1534 On error print shapes of sites in the trace: value shape for params, and value,dist,log_prob shapes for sample sites.
- On error, print contextual information: the current
cond_indep_stack, the portion of stack trace undersvi.step(), whether the model or guide is being executed,_DIM_ALLOCATORsate, tracing state, etc. This could be accomplished via atry: except: raiseblock to add information to a caught error. - others?