• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pyro-ppl / numpyro / 29682248581
92%

Build:
DEFAULT BRANCH: master
Ran 19 Jul 2026 10:10AM UTC
Jobs 3
Files 86
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Jul 2026 09:49AM UTC coverage: 92.364%. Remained the same
29682248581

push

github

web-flow
Avoid unnecessary deepcopy in `random_*_module` and `promote_batch_shape` (#2222)

* Avoid unnecessary copies of array data in random_*_module and promote_batch_shape

`random_flax_module` / `random_nnx_module` / `random_eqx_module` deep-copied
the full parameter pytree before replacing entries with prior samples, and
`promote_batch_shape` deep-copied distributions before reassigning their
`_batch_shape`. In both cases only the container structure needs to be fresh;
the array leaves are never mutated in place, so copying their buffers is
wasted work on every eager model trace.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Add tests for structure-only copies in module params and promote_batch_shape

Lock in the new guarantees: promote_batch_shape shares parameter arrays with
its input and mutates neither the input distribution nor its base_dist, and
_copy_structure copies only the dict structure while sharing leaves.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Use jax.tree.map to copy param structure per review feedback

Inline jax.tree.map(lambda x: x, params) at the call sites instead of a
dict-only helper, so non-dict containers are handled too. Replace the
helper's unit test with an API-level test that random_flax_module shares
the leaves of parameters not covered by the prior.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

6 of 6 new or added lines in 2 files covered. (100.0%)

14611 of 15819 relevant lines covered (92.36%)

1.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 test-modeling - 29682248581.1 19 Jul 2026 10:52AM UTC 86
68.73
GitHub Action Run
2 examples - 29682248581.2 19 Jul 2026 10:10AM UTC 86
28.81
GitHub Action Run
3 test-inference - 29682248581.3 19 Jul 2026 10:47AM UTC 86
71.08
GitHub Action Run
Source Files on build 29682248581
  • Tree
  • List 86
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29682248581
  • e37e7d7e on github
  • Prev Build on master (#29599788232)
  • Next Build on master (#29786138226)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc