-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotFoundError: Graph execution error: TPU #1370
Comments
Hi @djherbis, Could you please provide any information regarding this issue? Is there any blockers to use tpu-vm at the moment? |
@innat Could you share a public notebook with the complete code? That makes it a bit easier to debug, thanks! |
Hey, have you confirmed that Keras is using Tensorflow under the hood? |
I don't fully get your points. However, I was able to run I have run the above gist again with |
I meant when I ran it as Jax without tensorflow on tpuvm then it worked: Its not too uncommon for something to work on CPU/GPU and not tpu since the actual underlying systems are different. If possible using the Jax example might be a path forward. |
Ah, I see. I als tried following without installing tf-cpu, didn't work though. tf.config.set_visible_devices([], "TPU")
import keras, jax
devices = jax.devices("tpu")
data_parallel = keras.distribution.DataParallel(devices=devices)
|
Yeah, its impossible to use tensorflow (TPU) install with JAX or Pytorch, and since Keras is calling tensorflow here, thats loading the TPU twice (once for JAX, once for tensorflow) which breaks things. Installing tensorflow-cpu, and then using JAX (TPU) works though. |
While trying to run the following code on tpu-vm, it didn't work.
The text was updated successfully, but these errors were encountered: