Skip to content
Discussion options

You must be logged in to vote

Two comments:

  1. To my understanding, what you did is not inefficient since JAX works async, neither jnp.array nor your train_step will block unless you have a blocking operation like print, things just get queued for later execution in the background as they become available.
  2. Use jnp.asarray, it sometimes prevents unnecessary copying.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LawrenceMMStewart
Comment options

Answer selected by LawrenceMMStewart
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