Comments (2)
I think this be doable with jax.tree_util.tree_map(lambda index, subtree_of_arrays: jax.tree_util.tree_map(lambda array: array[index], subtree_of_arrays), pytree_of_indices, pytree_of_arrays)
?
from equinox.
This makes sense. I think I misunderstood the indexer!
from equinox.
Related Issues (20)
- Getting a type error when initializing Linear module (unexpected keyword argument 'key') HOT 1
- merging multiple eqx.Module classes HOT 2
- How to serialize a model + state pair? HOT 2
- Strange error with multiple tuples as attributes and `equinox.tree_at`? HOT 5
- Jax 0.4.27: ValueError: safe_map() argument 2 is shorter than argument 1 HOT 7
- Comparisons to NNX HOT 3
- Custom JVP/VJP definition within Module? HOT 3
- Unroll in eqx's internal `scan` HOT 11
- Conv Transpose doesn't exactly transpose HOT 4
- Static/Dynamic issues with filter_eval_shape HOT 1
- Kolmogorov Arnold Networks with equinox [kanx] HOT 2
- Flash Attention HOT 6
- A simple DeepMLP is taking 11GB/16GB in GPU RAM HOT 4
- Error with data sharding HOT 5
- Test fail with latest jaxtyping (0.2.29) HOT 2
- docs request for filter_jacs/hessian HOT 2
- Right way to count cache size HOT 2
- leaked trace error when using custom_jvp, scan, eqx.Module, and jit HOT 13
- `ValueError` from `filter_jit` when using an `eqx.Module` as a static argument on second call HOT 2
- Diffusion example error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from equinox.