Skip to content

Commit 1bf48a4

Browse files
author
Matthew
committed
fix lint
1 parent 9eb0a1c commit 1bf48a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/tvm/relay/transform/fake_quantization_to_integer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ def conv2d(expr, type_map):
139139
out = relay.qnn.op.conv2d(
140140
x, weight, x_t.zero_point, w_t.zero_point, x_t.scale, w_t.scale, **attrs
141141
)
142-
scale_shape = infer_shape(conv_scale)
143142
out_layout = attrs["out_layout"] if attrs["out_layout"] != "" else attrs["data_layout"]
144-
out_axis = tvm.tir.bijective_layout(out_layout, "NCHW").backward_index(list(range(4)))[1]
143+
out_axis = bijective_layout(out_layout, "NCHW").backward_index(list(range(4)))[1]
145144
return [out, TensorAffineType(conv_scale, conv_zp, out.attrs.out_dtype, out_axis.value)]
146145

147146

0 commit comments

Comments
 (0)