[onnx] ONNX 1.19 is not supported
Since 1.19 and in particular https://github.com/onnx/onnx/issues/4554 onnx.mapping is removed. It was deprecated since 1.14.
In ort_inference:
np_dtype = onnx.mapping.TENSOR_TYPE_TO_NP_TYPE.get(dtype, np.float32)
The code could be changed to:
-
onnx._mappingbut it is private. -
helper.tensor_dtype_to_np_dtype()but it doesn't support default values. Is it useful?