Commit 06ce76b6 by Xingyu Zhou Committed by Yao Wang

download fallback config file for search from tophub if it does not exist (#4671)

parent d6a23cf5
......@@ -214,7 +214,11 @@ def load_reference_log(backend, model, workload_name, template_key):
if key not in REFERENCE_LOG_CACHE:
tmp = []
if os.path.isfile(os.path.join(AUTOTVM_TOPHUB_ROOT_PATH, package_name)):
# Download the config file from tophub if not exists.
if not os.path.exists(filename):
tophub_location = _get_tophub_location()
download_package(tophub_location, package_name)
if os.path.isfile(filename): # in case download failed
find = False
inp = None
counts = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment