Skip to content

Commit

Permalink
int32_lanes=4 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Mar 24, 2022
1 parent c8b14e1 commit 0beacdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/tvm/topi/x86/conv2d_alter_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def _alter_conv2d_layout(attrs, inputs, tinfos, out_type):
out_dtype,
False,
data_layout,
int32_lanes=16,
)

batch_size, in_channel, height, width = get_const_tuple(data_tensor.shape)
Expand Down
3 changes: 2 additions & 1 deletion python/tvm/topi/x86/conv2d_int8.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _get_default_config_int8(
out_dtype,
is_depthwise=False,
layout="NCHW",
int32_lanes=16,
int32_lanes=4,
):
"""
Get default schedule config for the workload
Expand Down Expand Up @@ -172,6 +172,7 @@ def conv2d_NCHWc_int8(cfg, data, kernel, strides, padding, dilation, layout, out
padding,
dilation,
out_dtype,
int32_lanes=16,
)

# Pack data if raw 4-D data is provided.
Expand Down

0 comments on commit 0beacdf

Please sign in to comment.