Skip to content

Commit

Permalink
[Auto Scheduler][fix] Add dense strategy for mali (apache#7181)
Browse files Browse the repository at this point in the history
Signed-off-by: leowang1225 <810916296@qq.com>
  • Loading branch information
leowang1225 authored and electriclilies committed Feb 18, 2021
1 parent 752d8af commit 8664a42
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions python/tvm/relay/op/strategy/mali.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,16 @@ def conv2d_winograd_without_weight_transfrom_strategy_mali(attrs, inputs, out_ty
def dense_strategy_mali(attrs, inputs, out_type, target):
"""dense mali strategy"""
strategy = _op.OpStrategy()
strategy.add_implementation(
wrap_compute_dense(topi.mali.dense),
wrap_topi_schedule(topi.mali.schedule_dense),
name="dense.mali",
)
if not is_auto_scheduler_enabled():
strategy.add_implementation(
wrap_compute_dense(topi.mali.dense),
wrap_topi_schedule(topi.mali.schedule_dense),
name="dense.mali",
)
else:
strategy.add_implementation(
wrap_compute_dense(topi.nn.dense, need_auto_scheduler_layout=True),
naive_schedule,
name="dense.mali",
)
return strategy

0 comments on commit 8664a42

Please sign in to comment.