Skip to content
Discussion options

You must be logged in to vote

Python's in operator cannot be overloaded, and so expressions like x in hilb_grid_scaled are not compatible with traced values. You could use something like jnp.any(x == hilb_grid_scaled) instead.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JoshPilipovsky
Comment options

@jakevdp
Comment options

Answer selected by JoshPilipovsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants