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

Minor warning in jaxlib #4424

Closed
NeilGirdhar opened this issue Sep 30, 2020 · 0 comments · Fixed by #4458
Closed

Minor warning in jaxlib #4424

NeilGirdhar opened this issue Sep 30, 2020 · 0 comments · Fixed by #4458
Assignees

Comments

@NeilGirdhar
Copy link
Contributor

I don't know where jaxlib is or I would happily fix this, but the following code in xla_client.py is emitting deprecation warnings:

    PrimitiveType.TUPLE: np.dtype(np.object),
    PrimitiveType.TOKEN: np.dtype(np.object),

emits

DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. Use `object` by itself, which is identical in behavior, to silence this warning. If you specifically wanted the numpy scalar type, use `np.object_` here.

It should probably just be np.dtype(object).

@hawkinsp hawkinsp self-assigned this Sep 30, 2020
ArmageddonKnight pushed a commit to UofT-EcoSystem/tensorflow that referenced this issue Sep 30, 2020
Will fix google/jax#4424 when included in a jaxlib.

PiperOrigin-RevId: 334611917
Change-Id: I9dc76f812d4744567b62d4b5cf385ded375c4986
@hawkinsp hawkinsp mentioned this issue Oct 5, 2020
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 a pull request may close this issue.

2 participants