TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

Getting “failed to import metagraph” when running the TRT saved_model converter workflow for TF 1.15

Open liutao053877 opened this issue 3 years ago • 2 comments

I have trained a NER model with tensorflow1.15 and save the model in pb file . when I want to convert it to a new pb with tensorRT.

Error log occured: tensorflow.python.framework.errors_impl.InvalidArgumentError: Failed to import metagraph, check error log for more info.

same problem as : https://forums.developer.nvidia.com/t/getting-failed-to-import-metagraph-when-running-the-trt-saved-model-converter-workflow-for-tf-1-15/157319

how can I fix it ? thank you

liutao053877 avatar Aug 09 '22 09:08 liutao053877

Looks like a TF bug or a tf2onnx bug?

zerollzeng avatar Aug 10 '22 14:08 zerollzeng

you should check the pb model use saved_model_cli show ,see if it has default signature

Henry-Avery avatar Aug 23 '22 09:08 Henry-Avery

closing since no activity for more than 14 days, please reopen if you still have question, thanks!

ttyio avatar Dec 12 '22 07:12 ttyio