Skip to content

Commit 0eddf1c

Browse files
committed
fixed assert msg placement
1 parent 612a06b commit 0eddf1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/tvm/relay/frontend/onnx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3720,8 +3720,8 @@ def _impl_v10(cls, inputs, attr, params):
37203720
if attr["auto_pad"] in ("SAME_UPPER", "SAME_LOWER"):
37213721
# Warning: Convolution does not yet support dynamic shapes,
37223722
# one will need to run dynamic_to_static on this model after import
3723-
zp = fold_constant(x_zero_point), "Zero point expected to be a constant"
3724-
assert isinstance(zp, relay.Constant)
3723+
zp = fold_constant(x_zero_point)
3724+
assert isinstance(zp, relay.Constant), "Zero point expected to be a constant"
37253725
data = autopad(
37263726
data,
37273727
attr.get("strides", [1] * (ndim - 2)),

0 commit comments

Comments
 (0)