Open nilakshdas opened 5 years ago
I've managed to work around this issue by rerunning an estimator training locally for one step starting from the latest checkpoint (the one from TPU). Then newly produced meta-graph was imported seamlessly.
TPU export will add TPU metagraph to let you be able to serve on TPU. When you export for GPU, you need to export with use_tpu=false + export_to_tpu=false. Also, using the latest checkpoint and export with normal Estimator should work.
@saberkun can you post an example how to export with use_tpu=false + export_to_tpu=false?
I am unable to import the model to my local GPU machine after training ResNet on TPU and downloading the checkpoint directory.
Here's what I do to load the model:
Which gives the following error:
Seems like some of the ops are only defined for TPU's. How can I get around this?
I am using
tensorflow 1.11.0
.