Skip to content

Commit 78818bc

Browse files
committed
TOPI + OpStrategy
1 parent e41d0ed commit 78818bc

18 files changed

+713
-1244
lines changed

python/tvm/meta_schedule/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@
4040
from .mutator import Mutator
4141
from .postproc import Postproc
4242
from .profiler import Profiler
43-
from .relay_integration import (
44-
is_meta_schedule_dispatch_enabled,
45-
is_meta_schedule_enabled,
46-
)
43+
from .relay_integration import is_meta_schedule_enabled
4744
from .runner import Runner
4845
from .schedule_rule import ScheduleRule
4946
from .search_strategy import MeasureCandidate, SearchStrategy

python/tvm/meta_schedule/relay_integration.py

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ def tune_relay(
301301
strategy=strategy,
302302
seed=seed,
303303
)
304+
import sys
305+
306+
sys.exit()
304307
return tune_tasks(
305308
tasks=tasks,
306309
task_weights=task_weights,
@@ -369,7 +372,7 @@ def compile_relay(
369372
mod, target, params, pass_config, executor = _normalize_params(
370373
mod, target, params, pass_config, executor
371374
)
372-
pass_config.setdefault("relay.backend.use_meta_schedule_dispatch", target.kind.name != "cuda")
375+
pass_config.setdefault("relay.backend.use_meta_schedule_dispatch", True)
373376
with Profiler.timeit("PostTuningCompilation"):
374377
with target, _autotvm_silencer(), database:
375378
with transform.PassContext(
@@ -396,17 +399,3 @@ def is_meta_schedule_enabled() -> bool:
396399
"relay.backend.use_meta_schedule",
397400
False,
398401
)
399-
400-
401-
def is_meta_schedule_dispatch_enabled() -> bool:
402-
"""Return whether the meta-schedule dispatch is enabled.
403-
404-
Returns
405-
-------
406-
enabled: bool
407-
Whether the meta schedule is enabled
408-
"""
409-
return transform.PassContext.current().config.get(
410-
"relay.backend.use_meta_schedule_dispatch",
411-
False,
412-
)

python/tvm/meta_schedule/testing/conv2d_winograd_cpu.py

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

0 commit comments

Comments
 (0)