TF-TRT ERROR:tensorflow.python.framework.errors_impl.InvalidArgumentError: Failed to import metagraph, check error log for more info.

I use TF-TRT to convert my tensorflow savedmodel.
But I blocked by some error :

2019-11-02 08:52:55.449262: E tensorflow/core/grappler/] Failed to detect the fetch node(s), skipping this input
Traceback (most recent call last):
  File "./", line 12, in <module>
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/compiler/tensorrt/", line 300, in convert
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/compiler/tensorrt/", line 287, in _convert_saved_model
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/compiler/tensorrt/", line 204, in _run_conversion
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/grappler/", line 41, in OptimizeGraph
    verbose, graph_id)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Failed to import metagraph, check error log for more info.

my image is nvidia/tensorflow:19.10-py3
The following is my code.

import os
import tensorflow as tf


from tensorflow.python.compiler.tensorrt import trt_convert as trt
converter = trt.TrtGraphConverter(input_saved_model_dir=input_saved_model_dir)

There seems to be something wrong with the input graph.

Perhaps the input graph doesn’t have any output tensor?

How did you make the input saved_model?

Could you post the model here?

Hi Pooya-Davoodi,I have post my model at the attachment.

And my model is trained with tensorflow 1.12 version

Have you resolved this issue? I am having the same problem