Skip to content

ONNX TO TRT ERROR #8

Description

@skyyuzhang

when i convert onnx to trt i have this error can you help me thank you

[08/05/2025-01:38:47] [TRT] [W] onnx2trt_utils.cpp:374: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[08/05/2025-01:38:47] [TRT] [E] [graph.cpp::nvinfer1::builder::Node::symbolicExecute::539] Error Code 4: Internal Error (/OneHot: an IIOneHotLayer cannot be used to compute a shape tensor)
[08/05/2025-01:38:47] [TRT] [E] ModelImporter.cpp:771: While parsing node number 146 [Tile -> "/Tile_output_0"]:
[08/05/2025-01:38:47] [TRT] [E] ModelImporter.cpp:772: --- Begin node ---
[08/05/2025-01:38:47] [TRT] [E] ModelImporter.cpp:773: input: "/Unsqueeze_3_output_0"
input: "/Reshape_2_output_0"
output: "/Tile_output_0"
name: "/Tile"
op_type: "Tile"

[08/05/2025-01:38:47] [TRT] [E] ModelImporter.cpp:774: --- End node ---
[08/05/2025-01:38:47] [TRT] [E] ModelImporter.cpp:777: ERROR: ModelImporter.cpp:195 In function parseGraph:
[6] Invalid Node - /Tile
[graph.cpp::nvinfer1::builder::Node::symbolicExecute::539] Error Code 4: Internal Error (/OneHot: an IIOneHotLayer cannot be used to compute a shape tensor)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions