You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function import_meta_graph fails with KeyError: InfeedEnqueueTuple when importing a meta file of a graph trained on TPU (and with TPUEstimator). For graphs trained on CPU (also with TPUEstimator) it works correctly. Is this expected behaviour? How can I load a graph with parameters trained on TPU for CPU evaluation?
I noticed a similar error also related to TPU in another Github project, but no solution: tensorflow/minigo#426.
System information
Reproduced on MacOS and on Colab.
tensorflow 1.12.0 (from PyPI)
Python 3.6
CUDA/cuDNN/GPU not used
Describe the current behavior
Raises exception KeyError: InfeedEnqueueTuple.
Describe the expected behavior
Should load the graph without an exception.
Thanks for your bug report, but this is known and not really considered a bug right now.
During training, TensorFlow doesn't guarantee that the TensorFlow graph stored with the checkpoints can be used elsewhere. Your scenario would also not work if you trained with multi-GPUs using GPU specific ops like NCCL AllReduce.
If you want to export a model that can be imported by others, you should use one of the export functions, e.g. (TPU)Estimator.export_savedmodel().
Function
import_meta_graph
fails withKeyError: InfeedEnqueueTuple
when importing a meta file of a graph trained on TPU (and withTPUEstimator
). For graphs trained on CPU (also withTPUEstimator
) it works correctly. Is this expected behaviour? How can I load a graph with parameters trained on TPU for CPU evaluation?I noticed a similar error also related to TPU in another Github project, but no solution: tensorflow/minigo#426.
System information
Describe the current behavior
Raises exception
KeyError: InfeedEnqueueTuple
.Describe the expected behavior
Should load the graph without an exception.
Code to reproduce the issue
where
META_PATH
is a path to a meta file saved withTPUEstimator
.Other info / logs
Full traceback:
The text was updated successfully, but these errors were encountered: