We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Jax-team,
There is a bug related to vjp of the flatten operation and integer input:
pt = {'foo': jnp.array([1,2,3]), 'bar': {'baz': jnp.array([5,6]), 'bork': jnp.array([7,8])}} flat, unflatten = jax.flatten_util.ravel_pytree(pt) unflatten(flat)
returns
{'bar': {'baz': array([(b'',), (b'',)], dtype=[('float0', 'V')]), 'bork': array([(b'',), (b'',)], dtype=[('float0', 'V')])}, 'foo': array([(b'',), (b'',), (b'',)], dtype=[('float0', 'V')])}
This is only if I provide integer input. A proposed fix by @mattjj would be to recast to float and raise a warning, we agreed I would file a bug here.
All the best!
Gabe
The text was updated successfully, but these errors were encountered:
mattjj
Successfully merging a pull request may close this issue.
Hi Jax-team,
There is a bug related to vjp of the flatten operation and integer input:
returns
This is only if I provide integer input. A proposed fix by @mattjj would be to recast to float and raise a warning, we agreed I would file a bug here.
All the best!
Gabe
The text was updated successfully, but these errors were encountered: