Commit c570454
committed
refactor: use DimSymbolicRandomVariable for hybrid path, deduplicate signature inference, fix compound dists
- Replace compiled-function + graph-walking hybrid path with
DimSymbolicRandomVariable(SymbolicRandomVariable) + OpFromGraph
- Deduplicate _infer_dims_signature / _infer_final_signature
- Add XElemwise support to expand_dist_dims for compound dists
- Drop _forward_dim_lengths, enforce strict XTensorVariable output
- Add tests: compound non-XRV output, hybrid support_point1 parent 79dcc0c commit c570454
4 files changed
Lines changed: 246 additions & 162 deletions
File tree
- pymc
- dims/distributions
- distributions
- tests/dims/distributions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
| |||
326 | 325 | | |
327 | 326 | | |
328 | 327 | | |
329 | | - | |
330 | | - | |
331 | 328 | | |
332 | 329 | | |
333 | 330 | | |
| |||
377 | 374 | | |
378 | 375 | | |
379 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
380 | 385 | | |
381 | 386 | | |
382 | 387 | | |
| |||
0 commit comments