Skip to content

Commit

Permalink
[FIX][TOPI][X86] schedule dense pack (apache#4539)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnowingNothing authored and zhiics committed Jan 11, 2020
1 parent a421b38 commit 16c5faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions topi/python/topi/x86/dense.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def _declaration_dense_pack(cfg, data, weight, bias=None, out_dtype=None):
M, K = get_const_tuple(data.shape) # batch, in_dim
N, _ = get_const_tuple(weight.shape) # out_dim
# create tuning space
cfg.define_split("tile_y", 32 if isinstance(M, tvm.expr.Var) else M, num_outputs=2)
cfg.define_split("tile_x", 32 if isinstance(N, tvm.expr.Var) else N, num_outputs=2)
cfg.define_split("tile_y", 32 if isinstance(M, tvm.expr.Var) else M, num_outputs=3)
cfg.define_split("tile_x", 32 if isinstance(N, tvm.expr.Var) else N, num_outputs=3)
cfg.define_split("tile_k", 32 if isinstance(K, tvm.expr.Var) else K, num_outputs=2)
if cfg.is_fallback:
_default_dense_pack_config(cfg, M, N, K)
Expand Down

0 comments on commit 16c5faf

Please sign in to comment.