guan404ming opened a new pull request, #18733:
URL: https://github.com/apache/tvm/pull/18733

   ## Why                                                                       
                                              
                                                                                
                                      
   has_attr pattern matching failed for integer attributes because 
StructuralEqual requires exact dtype match for IntImm,  
   causing mismatches between Python-specified pattern values and actual 
operator attributes.                            
                                                                                
                                      
   ## How
   
   - Add AttrValueEqual helper in dataflow_matcher.cc that falls back to 
value-based int comparison and recurses into
   Arrays
   - Replace StructuralEqual with AttrValueEqual in MatchAttrs for both 
dict-style and reflection-based attribute matching
   - Re-enable previously disabled test_op_attr assertion and fix op name to 
relax.nn.conv2d
   - Update AttrPattern docstring to reflect support for Op, Call, and Function 
attributes


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to