Skip to content

Commit

Permalink
fix x86 template
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Jun 26, 2020
1 parent 69313a7 commit 371dae6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions topi/python/topi/x86/conv2d_avx_1x1.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def _schedule_conv_NCHWc(s, cfg, data_vec, kernel_vec, conv_out, last):
s[kernel_vec].vectorize(oc_block)
parallel_axis = s[kernel_vec].fuse(oc_chunk, oh)
s[kernel_vec].parallel(parallel_axis)
else:
oc_bn = cfg['tile_oc'].size[-1]

C, O = conv_out, last
CC = s.cache_write(C, 'global')
Expand Down
2 changes: 2 additions & 0 deletions topi/python/topi/x86/conv2d_avx_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def _schedule_conv_NCHWc(s, cfg, data_vec, kernel_vec, conv_out, last):
s[kernel_vec].vectorize(oc_block)
parallel_axis = s[kernel_vec].fuse(oc_chunk, oh)
s[kernel_vec].parallel(parallel_axis)
else:
oc_bn = cfg['tile_oc'].size[-1]


# schedule 5-D NCHW[x]c conv
Expand Down

0 comments on commit 371dae6

Please sign in to comment.