Skip to content

Commit a993321

Browse files
authored
[TOPI][CUDA] minor change on assert statement in conv2d_NCHWc_int8.cuda (#8554)
* [TOPI][CUDA] minor change on assert statement * [TOPI][CUDA] reformatting
1 parent b6b8269 commit a993321

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/tvm/topi/cuda/conv2d_int8.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def conv2d_NCHWc_int8(cfg, data, kernel, stride, padding, dilation, layout, out_
9898
)
9999

100100
out_channels, in_channels, kernel_h, kernel_w = get_const_tuple(kernel.shape)
101-
assert out_channels % 4 == 0, "Number of output channels should be multiple of {}".format(
102-
oc_block_factor
103-
)
101+
assert (
102+
out_channels % oc_block_factor == 0
103+
), "Number of output channels should be multiple of {}".format(oc_block_factor)
104104
packed_kernel = te.compute(
105105
(
106106
out_channels // oc_block_factor,

0 commit comments

Comments
 (0)