1

I'm using TPU through Google Colab and GCP, and want to dump XLA IR. But I have seen the xla doc in github xla index, and it only shows the way while the backend is CPU or GPU.

I have tried using XLA_FLAGS="--xla_dump_hlo_as_text --xla_dump_to=/content/iir/" TF_XLA_FLAGS=--tf_xla_cpu_global_jit to run a CPU-targeted program and get dumped hlo file. I have also tried capture_tpu_file and can only get ir for each operator in 'op_profile' page. So is there a way to dump XLA IR for the whole program when the backend is TPU?

Thank you!

Jay

1 Answer 1

1

Unfortunately there isn't a way to dump/access the XLA IR on Cloud TPUs at the moment, since the XLA_FLAGS need to be set on the TPU server.

1
  • So we can't dump HLO IR when the target is TPU, even before any optimizations? If that's true, can we use functions in libtpu_client.c to run HLO IR dumped when the backend is CPU or GPU?
    – JaySun
    Aug 7, 2020 at 6:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.