leandron commented on a change in pull request #8533:
URL: https://github.com/apache/tvm/pull/8533#discussion_r675629665
##########
File path: python/tvm/contrib/download.py
##########
@@ -62,72 +62,74 @@ def download(url, path, overwrite=False,
size_compare=False, verbose=1, retries=
res_get = urllib2.urlopen(url)
url_file_size = int(res_get.headers["Content-Length"])
if url_file_size != file_size:
- print("exist file got corrupted, downloading %s file
freshly..." % path)
- download(url, path, True, False)
+ if verbose:
+ print(f"Existing file {path} has incorrect size,
downloading fresh copy")
Review comment:
Yeah, I agree with the log levels you proposed. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]