Skip to content

PyImageSearch Tutorial on JAX Part 2 | Power tools of JAX #14698

Discussion options

You must be logged in to vote

Nice to see this tutorial progressing! A few comments:

  1. As in the first section, pip install jax will not work in a fresh environment. The only reason it works in Colab is because jaxlib is already installed. You might wish to recommend something like pip install jax[cpu] (this would be preferred over installing jaxlib separately) or refer to the JAX installation guide.
  2. For the stateful vs. stateless discussion, the current version makes it sounds like class attributes are the problem. But I think this is a bit misleading: class attributes are fine, the issue is with in-place modification of class attributes. So maybe in place of the Stateless example, you could do something like this: St…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ariG23498
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants