Skip to content

Conversation

rochisha0
Copy link
Collaborator

Turn numpy to jax numpy in reshape.py. numpy gives issues with jit and grad.

def _parse_ptrace_inputs(dims, sel, shape):
dims = np.atleast_1d(dims).ravel()
sel = np.atleast_1d(sel)
dims = jnp.atleast_1d(dims).ravel()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think since jnp is not defined in the header nothing will happen, maybe you should change jnp to JaxArray or import jax.numpy as jnp

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