Skip to content

How can I transfer t5 decoder_model_merged.onnx to tensorrt #4032

Closed
@EASTERNTIGER

Description

@EASTERNTIGER

Hi,when I try to use command:
trtexec --onnx=decoder_model_merged.onnx --saveEngine=decoder_model_merged.trt
in linux,it showed:
[07/30/2024-02:00:24] [E] Error[4]: [graphShapeAnalyzer.cpp::analyzeShapes::2084] Error Code 4: Miscellaneous (IConditionalOutputLayer optimum::if_OutputLayer_4945: optimum::if_OutputLayer_4945: dimensions not compatible for if-conditional outputs)
[07/30/2024-02:00:24] [E] Engine could not be created from network
[07/30/2024-02:00:24] [E] Building engine failed
[07/30/2024-02:00:24] [E] Failed to create engine from model or file.
[07/30/2024-02:00:24] [E] Engine set up failed
image

when I use the same command:
trtexec --onnx=decoder_model.onnx --saveEngine=decoder_model.trt
it works , so why in the same T5 onnx model,decoder_model.onnx、encoder_model.onnx、decoder_with_past_model.onnx could be transferred to trt successfully, decoder_model_merged.onnx could not,How can I fixed that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions