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

f-dangel / curvlinops / 22835830184
91%
main: 92%

Build:
Build:
LAST BUILD BRANCH: kfoc-mc-support
DEFAULT BRANCH: main
Ran 09 Mar 2026 03:03AM UTC
Jobs 1
Files 47
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

09 Mar 2026 02:25AM UTC coverage: 91.277% (+0.02%) from 91.259%
22835830184

push

github

f-dangel
[REF] Refactor vmap convention: X/loss_args split, -1 dims, typed c

Three related improvements to the torch.func convention:

1. Split data arguments into X (model input) and loss_args (loss
   function arguments as a tuple). This makes the data flow explicit:
   f consumes X, c consumes loss_args. Adding extra loss arguments
   (e.g. generator for MC) no longer changes vmap in_dims.

2. Replace tuple(p.ndim for p in params) with scalar -1 in all vmap
   in_dims/out_dims. A scalar -1 broadcasts to "last axis" per tensor
   leaf in the pytree.

3. Type the loss function c as Callable[[Tensor, tuple], Tensor]
   instead of Callable[..., Tensor]. The c returned by
   make_functional_model_and_loss now natively accepts
   (prediction, loss_args) instead of (prediction, y).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

13 of 13 new or added lines in 4 files covered. (100.0%)

2208 of 2419 relevant lines covered (91.28%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22835830184.1 09 Mar 2026 03:03AM UTC 47
91.28
GitHub Action Run
Source Files on build 22835830184
  • Tree
  • List 47
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 627381fc on github
  • Prev Build on use-tuples-in-functionals (#22835615977)
  • Next Build on use-tuples-in-functionals (#22836032412)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc