Skip to content

Remove torch.compile from INR ray helpers for Windows compatibility#261

Merged
gvarnavi merged 1 commit into
electronmicroscopy:devfrom
cedriclim1:fix/windows-torch-compile-rays
Jul 9, 2026
Merged

Remove torch.compile from INR ray helpers for Windows compatibility#261
gvarnavi merged 1 commit into
electronmicroscopy:devfrom
cedriclim1:fix/windows-torch-compile-rays

Conversation

@cedriclim1

Copy link
Copy Markdown
Collaborator

Hot-fix, take out @torch.compile flags in tests.

create_batch_rays and integrate_rays were decorated with
@torch.compile(mode="reduce-overhead"). Calling them triggers
TorchInductor, which needs a C compiler to build its kernel. On Windows
runners without MSVC (cl.exe) on PATH this raises InductorError, failing
tests/tomography/test_dataset_models.py::TestINRRayMath on windows-latest.

Both are trivial tensor ops (a small fill and a single reduction) and
reduce-overhead is a no-op on CPU, so eager execution is equivalent and
portable across platforms.
@gvarnavi gvarnavi merged commit c14c7b1 into electronmicroscopy:dev Jul 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants