Skip to content

PyTorch ONNX exporter produces invalid Gemm node #6998

Closed
@SebastianJanampa

Description

@SebastianJanampa

Hello everyone,

I am not familiar with onnx. I have exported a model from torch to onnx, the torch model works fine, but the when I try to do inference with the onnx file, I got the following error message.

[ShapeInferenceError] All inputs to Concat must have same rank. Input 1 has rank 0 != 1

How could I solve this error?

Thank you so much

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions