From 5dc962711b177f90de1560cb530ad3e3bee06d39 Mon Sep 17 00:00:00 2001 From: Egor Churaev Date: Wed, 9 Jun 2021 17:11:11 +0300 Subject: [PATCH] [Metal] Remove matching Metal to OpenCL in tophub (#8211) --- python/tvm/autotvm/tophub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tvm/autotvm/tophub.py b/python/tvm/autotvm/tophub.py index f346b33bc34d..5c0a46336532 100644 --- a/python/tvm/autotvm/tophub.py +++ b/python/tvm/autotvm/tophub.py @@ -65,7 +65,6 @@ def _alias(name): """convert alias for some packages""" table = { "vtacpu": "vta", - "metal": "opencl", "webgpu": "opencl", "vulkan": "opencl", "nvptx": "cuda", @@ -201,6 +200,8 @@ def load_reference_log(backend, model, workload_name): """ backend = _alias(backend) + if backend not in PACKAGE_VERSION: + return [] version = PACKAGE_VERSION[backend] package_name = "%s_%s.log" % (backend, version) filename = Path(AUTOTVM_TOPHUB_ROOT_PATH, package_name)