Skip to content
Discussion options

You must be logged in to vote

I think using jax.default_device('cpu') is a good approach for what you describe.

Another option would be to use jax.experimental.io_callback within your main program to call back to the host and do any data loading and/or preprocessing with NumPy.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mjo22
Comment options

@jakevdp
Comment options

@mjo22
Comment options

@mjo22
Comment options

@jakevdp
Comment options

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