Archermmt commented on code in PR #16128:
URL: https://github.com/apache/tvm/pull/16128#discussion_r1396423625


##########
python/tvm/relax/transform/transform.py:
##########
@@ -647,19 +647,21 @@ class FusionPattern(Object):
     pattern: DFPattern
     annotation_patterns: Mapping[str, DFPattern]
     check: Callable[[PatternCheckContext], bool]
+    attrs_getter: Callable[[PatternCheckContext], Dict[str, str]]
 
     def __init__(
         self,
         name: str,
         pattern: DFPattern,
         annotation_patterns: Optional[Mapping[str, DFPattern]] = None,
         check: Optional[Callable[[Mapping[str, Expr]], bool]] = None,
+        attrs_getter: Optional[Callable[[Mapping[str, Expr]], Dict[str, str]]] 
= None,

Review Comment:
   I just copied from L649 and L657 and change return type ... from the check. 
I also don't know why different annotation is used for check 🤣...



##########
python/tvm/relax/transform/transform.py:
##########
@@ -647,19 +647,21 @@ class FusionPattern(Object):
     pattern: DFPattern
     annotation_patterns: Mapping[str, DFPattern]
     check: Callable[[PatternCheckContext], bool]
+    attrs_getter: Callable[[PatternCheckContext], Dict[str, str]]
 
     def __init__(
         self,
         name: str,
         pattern: DFPattern,
         annotation_patterns: Optional[Mapping[str, DFPattern]] = None,
         check: Optional[Callable[[Mapping[str, Expr]], bool]] = None,
+        attrs_getter: Optional[Callable[[Mapping[str, Expr]], Dict[str, str]]] 
= None,

Review Comment:
   I just copied from L649 and L657 and change return type ... from the check. 
I also don't know why different annotation is used for check 🤣...



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