if key not in REFERENCE_LOG_CACHE:
tmp = []
+ # If TOPHUB_LOCATION is not AUTOTVM_TOPHUB_NONE_LOC,
# 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 tophub_location != AUTOTVM_TOPHUB_NONE_LOC:
+ download_package(tophub_location, package_name)
if os.path.isfile(filename): # in case download failed
find = False
inp = None