Skip to content

Moved bool states to Static.#183

Merged
patrick-kidger merged 1 commit intodevfrom
static-bool-state
Dec 22, 2025
Merged

Moved bool states to Static.#183
patrick-kidger merged 1 commit intodevfrom
static-bool-state

Conversation

@patrick-kidger
Copy link
Owner

@patrick-kidger patrick-kidger commented Dec 22, 2025

There look to be some downstream failures otherwise, in places where we're silently assuming that the state is entirely dynamic, e.g. where VeryChord tracks the state.

This looks to be the easiest solution – to just make the whole state dynamic.

NB we don't have this happen automatically inside linear_solve because .init is a public API that may be called independently, and its state passed into linear_solve. (For the case of re-using one operator.)

There seem to be some spurious downstream failures in Diffrax with JAX 0.8.2 otherwise. Probably JAX has started promoting these to tracers on some unusual codepath.
@patrick-kidger patrick-kidger merged commit 9c1b9a9 into dev Dec 22, 2025
1 check passed
@patrick-kidger patrick-kidger deleted the static-bool-state branch December 22, 2025 22:48
@patrick-kidger patrick-kidger mentioned this pull request Jan 26, 2026
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.

1 participant