TVM ONNX frontend fails with ONNX 1.20

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-14981
    • MCU_NNC_2.1.0
    • MCU_NNC_2.1.1
    • default

      When using ModelMaker with ONNX version 1.20, TVM compiler runs into issue: No module named onnx.mapping

      Root cause: onnx.mapping has been deprecated and removed in ONNX 1.20. The new interface is in onnx.helper:

      old: from onnx.mapping import TENSOR_TYPE_TO_NP_TYPE
      new: https://onnx.ai/onnx/api/helper.html#onnx.helper.tensor_dtype_to_np_dtype

      This fix is to update TVM ONNX frontend to work with ONNX 1.20.

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-6432 - TVM ONNX frontend fails with ONNX 1.20
                SYNCHRONIZED
                • Last Sync Date: