-
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.