Skip to content

Commit

Permalink
[TOPI][CUDA] minor change on assert statement in conv2d_NCHWc_int8.cu…
Browse files Browse the repository at this point in the history
…da (#8554)

* [TOPI][CUDA] minor change on assert statement

* [TOPI][CUDA] reformatting
  • Loading branch information
zotanika authored Jul 29, 2021
1 parent b6b8269 commit a993321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tvm/topi/cuda/conv2d_int8.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def conv2d_NCHWc_int8(cfg, data, kernel, stride, padding, dilation, layout, out_
)

out_channels, in_channels, kernel_h, kernel_w = get_const_tuple(kernel.shape)
assert out_channels % 4 == 0, "Number of output channels should be multiple of {}".format(
oc_block_factor
)
assert (
out_channels % oc_block_factor == 0
), "Number of output channels should be multiple of {}".format(oc_block_factor)
packed_kernel = te.compute(
(
out_channels // oc_block_factor,
Expand Down

0 comments on commit a993321

Please sign in to comment.