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

no constant handler for IntEnum #6129

Closed
mattjj opened this issue Mar 19, 2021 · 0 comments · Fixed by #6130
Closed

no constant handler for IntEnum #6129

mattjj opened this issue Mar 19, 2021 · 0 comments · Fixed by #6130
Assignees
Labels
bug Something isn't working

Comments

@mattjj
Copy link
Collaborator

mattjj commented Mar 19, 2021

import enum
import jax

class Foo(enum.IntEnum):
  bar = 1
  baz = 2


@jax.pmap
def f(_):
  return Foo.bar

f(jax.numpy.arange(1))

The same works with jax.jit instead of jax.pmap.

@mattjj mattjj added the bug Something isn't working label Mar 19, 2021
@mattjj mattjj self-assigned this Mar 19, 2021
NeilGirdhar pushed a commit to NeilGirdhar/jax that referenced this issue Apr 1, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant