Skip to content

Commit 4fd94e2

Browse files
committed
Don't use automatic AOT building when skipping pass
1 parent 3237b35 commit 4fd94e2

File tree

5 files changed

+39
-354
lines changed

5 files changed

+39
-354
lines changed

python/tvm/testing/aot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def compile_models(
636636
model.module, target=target, params=model.params
637637
)
638638
with tvm.autotvm.apply_fixed_config(task_list, schedule_name):
639-
with tvm.transform.PassContext(opt_level=3, config=config, disabled_pass=["qnn.Legalize"]):
639+
with tvm.transform.PassContext(opt_level=3, config=config):
640640
if use_runtime_executor:
641641
executor_factory = tvm.relay.build(
642642
model.module,

python/tvm/topi/arm_cpu/conv2d.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
conv2d_nhwc_dsp_compute,
3838
conv2d_nhwc_dsp_schedule,
3939
)
40-
from .mprofile.dsp.tensordot_conv2ds import (
41-
conv2d_nhwc_ohwi_dsp_compute,
42-
tensordot_conv2ds_schedule,
43-
)
44-
4540

4641
@autotvm.register_topi_compute("conv2d_nchw_spatial_pack.arm_cpu")
4742
def conv2d_nchw_spatial_pack(cfg, data, kernel, strides, padding, dilation, out_dtype):
@@ -522,17 +517,3 @@ def conv2d_nhwc_dsp(cfg, data, kernel, strides, padding, dilation, out_dtype):
522517
def schedule_conv2d_nhwc_dsp(cfg, outs):
523518
"""Create schedule for conv2d_nhwc_dsp"""
524519
return conv2d_nhwc_dsp_schedule(cfg, outs)
525-
526-
527-
@autotvm.register_topi_compute("conv2d_nhwc_ohwi_dsp.arm_cpu")
528-
def conv2d_nhwc_ohwi_dsp(cfg, data, kernel, strides, padding, dilation, out_layout, out_dtype):
529-
"""Compute conv2d_nhwc_ohwi with v7e-m DSP instructions and the tensordot kernel."""
530-
return conv2d_nhwc_ohwi_dsp_compute(
531-
cfg, data, kernel, strides, padding, dilation, out_layout, out_dtype
532-
)
533-
534-
535-
@autotvm.register_topi_schedule("conv2d_nhwc_ohwi_dsp.arm_cpu")
536-
def schedule_conv2d_nhwc_ohwi_dsp(cfg, outs):
537-
"""Create schedule for conv2d_nhwc_ohwi."""
538-
return tensordot_conv2ds_schedule(cfg, outs)

python/tvm/topi/arm_cpu/depthwise_conv2d.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
depthwise_conv2d_nhwc_dsp_compute,
3232
depthwise_conv2d_nhwc_dsp_schedule,
3333
)
34-
from .mprofile.dsp.tensordot_conv2ds import (
35-
depthwise_conv2d_nchw_oihw_dsp_compute,
36-
tensordot_conv2ds_schedule,
37-
)
3834

3935

4036
@autotvm.register_topi_compute("depthwise_conv2d_nchw.arm_cpu")
@@ -722,19 +718,3 @@ def depthwise_conv2d_nhwc_dsp(cfg, data, kernel, strides, padding, dilation, out
722718
def schedule_depthwise_conv2d_nhwc_dsp(cfg, outs):
723719
"""Create schedule for conv2d_nhwc_dsp"""
724720
return depthwise_conv2d_nhwc_dsp_schedule(cfg, outs)
725-
726-
727-
@autotvm.register_topi_compute("depthwise_conv2d_nchw_oihw_dsp.arm_cpu")
728-
def depthwise_conv2d_nchw_oihw_dsp(
729-
cfg, data, kernel, strides, padding, dilation, out_layout, out_dtype
730-
):
731-
"""Compute depthwise_conv2d_nchw_oihw with v7e-m DSP instructions and the tensordot kernel."""
732-
return depthwise_conv2d_nchw_oihw_dsp_compute(
733-
cfg, data, kernel, strides, padding, dilation, out_layout, out_dtype
734-
)
735-
736-
737-
@autotvm.register_topi_schedule("depthwise_conv2d_nchw_oihw_dsp.arm_cpu")
738-
def schedule_depthwise_conv2d_nchw_oihw_dsp(cfg, outs):
739-
"""Create schedule for depthwise_conv2d_nchw_oihw."""
740-
return tensordot_conv2ds_schedule(cfg, outs)

python/tvm/topi/arm_cpu/mprofile/dsp/tensordot_conv2ds.py

Lines changed: 0 additions & 296 deletions
This file was deleted.

0 commit comments

Comments
 (0)