Lunderberg commented on a change in pull request #8533:
URL: https://github.com/apache/tvm/pull/8533#discussion_r675631368



##########
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:
       No problem!  I ended up using `WARNING` level a couple of times as well, 
for the corrupted file and error-retry paths.




-- 
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]


Reply via email to