Skip to content

Conversation

@mblondel
Copy link
Collaborator

@mblondel mblondel commented Jul 7, 2022

No description provided.


# Hide any GPUs from TensorFlow. Otherwise TF might reserve memory and make
# it unavailable to JAX.
tf.config.experimental.set_visible_devices([], 'GPU')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is interesting - why do we have TF here at all? Is it because we import tfds above?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is due to tensorflow datasets, which imports (parts of) tensorflow. Without this line, tf occupies the memory of the GPU and jax can't use it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants