Open jikechao opened 7 months ago
If the Scale is a typo, the conversion function has another bug. The type of attribute scale
in Operator Scaler is a list, while TVM considers it as a float. The conversion will crash under the given ONNX model above.
First of all, I need to confirm if the Scale is a typo. If so, I can provide patches to fix these bugs.
Expected behavior
The Scaler operator has been supported in the TVM ONNX frontend, however, the map has the wrong key name Scale. I can not find the operator Scale in the ONNX official documentation and ONNXRuntime opset. Thus, I thought the Scale is a typo of Scaler. https://github.com/apache/tvm/blob/a1a1a7ca033f83315d02411d4b2c475ddacc795e/python/tvm/relay/frontend/onnx.py#L6531
Actual behavior
Steps to reproduce
step 1. Download the ONNX model here
cc @KJlaccHoeUM9l @shingjan