Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Bug] [ONNX Frontend] SparseConvolution and ScatterDense operators unsupported during import #20049

Copy link
Copy link

Description

@Shirley4042
Issue body actions

Expected behavior

I am trying to import NVIDIA BEVFusion ONNX models into TVM.

testcase.zip

The ONNX models contain two custom sparse operators:

  • SparseConvolution
  • ScatterDense

I expect the TVM ONNX frontend to either:

  1. Directly import these operators into corresponding Relax operators,
    or
  2. Provide a recommended extension mechanism for lowering these
    operators into TVM-compatible representations.

Actual behavior

Importing the ONNX models fails because the TVM ONNX frontend does not
recognize these operators.

Error:

OpNotImplemented:
The following operators are not supported for frontend ONNX:
SparseConvolution, ScatterDense

Environment

  • TVM: TVM v0.25.dev0
  • OS: Ubuntu 22.04
  • Python: 3.11

Model information

Example:

testcase

testcase.zip

.onnx

Graph structure:

Input
 |
SparseConvolution x21
 |
Add
 |
Relu
 |
ScatterDense
 |
Output

The operators are custom ONNX operators generated by NVIDIA sparse
convolution implementation.

Questions

  1. Should SparseConvolution and ScatterDense be added as new Relax
    operators?

  2. Does TVM have an existing recommended extension mechanism for
    importing non-standard ONNX sparse operators?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triagePRs or issues that need to be investigated by maintainers to find the right assignees to address itPRs or issues that need to be investigated by maintainers to find the right assignees to address ittype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.