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

cannot pickle bfloat16 array #8541

Closed
3 tasks done
guolinke opened this issue Nov 15, 2021 · 1 comment
Closed
3 tasks done

cannot pickle bfloat16 array #8541

guolinke opened this issue Nov 15, 2021 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@guolinke
Copy link

guolinke commented Nov 15, 2021

Please:

  • Check for duplicate issues.
  • Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:
>>> import jax.numpy as jnp
>>> a = [1, 3, 3, 5]
>>> t = jnp.asarray(a, dtype=jnp.bfloat16)
>>> import pickle
>>> pp = pickle.dump(t, file=open('test.pkl','wb'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <class 'bfloat16'>: attribute lookup bfloat16 on builtins failed

>>> import jax
>>> jax.__version__
'0.2.25'
>>> import jaxlib
>>> jaxlib.__version__
'0.1.73'
  • If applicable, include full error messages/tracebacks.
@guolinke guolinke added the bug Something isn't working label Nov 15, 2021
@jakevdp
Copy link
Collaborator

jakevdp commented Nov 15, 2021

Hi - thanks for the report! This issue is tracked in #8505, so I'm going to mark this as a duplicate.

@jakevdp jakevdp added the duplicate This issue or pull request already exists label Nov 15, 2021
@jakevdp jakevdp closed this as completed Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants