Skip to content

Conversation

@dimitriye98
Copy link

Resolves #15

This does introduce a dependency to cachetools to use an LRU cache with custom keys.

Further, a dummy pass is still required through any module being vmapped over. In idiomatic equinox code, where modules will quite often vmap over nested modules, this is perhaps not ideal, as it can require manually performing dummy passes over deeply nested modules. Perhaps some further work could be done to allow vmap to automatically trigger a dummy pass on its first call? This could be of use in use cases beyond equinox as well.

(Bump hash to trigger test workflow)
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.

vmap can't be used with equinox module as op

1 participant