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/grappler_item_builder.cc:330] Failed to detect the fetch node(s), skipping this input
Traceback (most recent call last):
  File "./trt6_convert_save.py", line 12, in <module>
    converter.convert()
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/compiler/tensorrt/trt_convert.py", line 300, in convert
    self._convert_saved_model()
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/compiler/tensorrt/trt_convert.py", line 287, in _convert_saved_model
    self._run_conversion()
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/compiler/tensorrt/trt_convert.py", line 204, in _run_conversion
    graph_id=b"tf_graph")
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/grappler/tf_optimizer.py", 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

input_saved_model_dir="/tf_savedmodel"
output_saved_model_dir="/tftrt_savedmodel"

from tensorflow.python.compiler.tensorrt import trt_convert as trt
converter = trt.TrtGraphConverter(input_saved_model_dir=input_saved_model_dir)
converter.convert()
converter.save(output_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