pyro-ppl/pyro

[FR] Error messages should be more specific

Open

#1,453 创建于 2018年10月16日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)Python (981 fork)batch import
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 Distribution inputs 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 under svi.step(), whether the model or guide is being executed, _DIM_ALLOCATOR sate, tracing state, etc. This could be accomplished via a try: except: raise block to add information to a caught error.
  • others?

贡献者指南