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)