From 16a9add6051ea7c87190f1beb75425f7ccfa08d3 Mon Sep 17 00:00:00 2001 From: Xiyou Zhou Date: Wed, 22 Jun 2022 22:53:39 -0700 Subject: [PATCH] Fix lint. --- python/tvm/meta_schedule/tune.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/tvm/meta_schedule/tune.py b/python/tvm/meta_schedule/tune.py index 437a4d627c40d..bfad498e7614b 100644 --- a/python/tvm/meta_schedule/tune.py +++ b/python/tvm/meta_schedule/tune.py @@ -591,7 +591,6 @@ def tune_relay( ): if backend == "graph": return relay_build(mod, target=target, params=params) - elif backend == "vm": + if backend == "vm": return relay.vm.compile(mod, target=target, params=params) - else: - raise ValueError(f"Backend {backend} not supported in ApplyHistoryBest!") + raise ValueError(f"Backend {backend} not supported in ApplyHistoryBest!")