You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/05/18 18:11:50 UTC

[GitHub] [tvm] lmxyy commented on a change in pull request #8066: [AutoScheduler] Make RecordReader error-free

lmxyy commented on a change in pull request #8066:
URL: https://github.com/apache/tvm/pull/8066#discussion_r634634063



##########
File path: python/tvm/auto_scheduler/measure_record.py
##########
@@ -61,8 +64,9 @@ class RecordReader(Object):
 
     def __init__(self, filename):
         # a set to prevent print duplicated message
+        if not os.path.exists(filename):
+            raise FileExistsError("%s does not exists!" % filename)

Review comment:
       Modified.




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org