pymc-devs/pymc

CheckParameterValues not replaced in inner graphs

Open

#6,697 建立於 2023年4月28日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Python (1,902 fork)batch import
help wantedlogprob

倉庫指標

Star
 (7,926 star)
PR 合併指標
 (平均合併 11天) (30 天內合併 7 個 PR)

描述

We include these rewrites when compiling logp graphs, but this won't replace inner logp graphs (e.g, inside Scan or not-inlined OpFromGraph)

https://github.com/pymc-devs/pymc/blob/371472dcf1c44f99a9ad4e7317606404b2a47a0e/pymc/pytensorf.py#L1142-L1144

The example in #6696 suffers from this. Sampling is quite faster when the rewrite is manually added

貢獻者指南