Icemist commented on code in PR #12545:
URL: https://github.com/apache/tvm/pull/12545#discussion_r967563947


##########
python/tvm/autotvm/task/space.py:
##########
@@ -822,6 +830,155 @@ def valid(self):
         """
         return not bool(self.errors)
 
+    def is_index_filtered(self, i):
+        """checks if the index satisfies the multi_filter"""
+        if self._shared_filter is None:
+            return True
+
+        if self._shared_filter_cash is None:
+            self._make_shared_filter_cash()
+
+        return self._shared_filter_cash[i]
+
+    def multi_filter(self, **kwargs):
+        "Keeps arg named 'filter'as function as a multi_filter"
+        if self._collect:
+            self._shared_filter_cash = None

Review Comment:
   Done.



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