roger-zhao opened a new issue #7155:
URL: https://github.com/apache/tvm/issues/7155


   
https://github.com/apache/tvm/blob/08a69d4f92742c8c526d6a7c2a5805d00f5dc725/python/tvm/autotvm/task/space.py#L839
   
   here, when _length is None, then initiate it to current search space length, 
it's almost good most of times, however if user/developer get __len__ of search 
space when space is empty, then a unreasonable _length 1 will be produced( the 
result of empty list for np.prod is 1), so it's better for adding an extra 
condition such as " len(self.space_map.values()) != 0" . :)


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to