Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applying functions across Tensor dimensions similar to JAX’s vmap #2746

Open
JR-1991 opened this issue Jan 27, 2025 · 0 comments
Open

Applying functions across Tensor dimensions similar to JAX’s vmap #2746

JR-1991 opened this issue Jan 27, 2025 · 0 comments

Comments

@JR-1991
Copy link

JR-1991 commented Jan 27, 2025

Is there a way to apply an arbitrary function across a tensor dimension like Jax’s vmap? I haven’t found this feature in the documentation and might have looked for the wrong term.

I need to apply an ODE solver to the batch dimension of a tensor of initial conditions to generate a new tensor with integrated values. Currently, I’m integrating over the entire time domain for all initial conditions, but managing adaptive step sizes is challenging since they’re dictated by the stiffest trajectory.

If this functionality isn’t available, what are the best practices to achieve it? Thanks in advance!

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

No branches or pull requests

1 participant