masahi commented on code in PR #13578:
URL: https://github.com/apache/tvm/pull/13578#discussion_r1043847053
##########
python/tvm/relay/frontend/onnx.py:
##########
@@ -1391,7 +1391,7 @@ def _impl_v1(cls, inputs, attr, params):
dtype = input0_state.checked_type.dtype
# Y = alpha * A * B + beta * C
alpha = float(attr.get("alpha", 1.0))
- beta = float(attr.get("beta", 1.0))
+ beta = float(attr.get("beta"))
Review Comment:
Constant folding doesn't work when beta is multiplying an output of qnn ops,
since we cannot fold over them. The model in
https://github.com/apache/tvm/issues/13545 has `multiply(1f, dequantize(bias)`
after `dense`, which was also causing some issues.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]