comaniac commented on a change in pull request #4644: [Relay][AutoTVM] Relay op 
strategy
URL: https://github.com/apache/incubator-tvm/pull/4644#discussion_r380340757
 
 

 ##########
 File path: python/tvm/autotvm/database.py
 ##########
 @@ -125,7 +125,7 @@ def load(self, inp, get_all=False):
         current = self.get(measure_str_key(inp))
         if current is not None:
             records = [decode(x) for x in 
current.split(RedisDatabase.MAGIC_SPLIT)]
-            results = [rec[1] for rec in records]
+            results = [rec[1] for rec in records if rec is not None]
             if get_all:
                 return results
             return max(results, key=lambda result: result.timestamp)
 
 Review comment:
   `max` will throw `ValueError` if `results` is empty.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to