tqchen commented on PR #12706:
URL: https://github.com/apache/tvm/pull/12706#issuecomment-1237566235

   thanks @masahi . I thin this belongs to a more general topic of 
canonicalizing the workload keys. While adding such option would indeed resolve 
this particular case, it would be good to think about if we can have a more 
generalized approach(for future cases that needs canonicalization, e.g. those 
that have followup elem-wise patterns which allows some form of reuse)
   
   One possible approach is to have a CanonicalizeWorkloadKey which takes a TIR 
and Canonicalizes that into a different one(e.g. change alloc_const to a the 
function parameter which contains a buffer). Depends on how fast we can do 
this, we can choose to introduce the flag. 
   
   This also helps us to prevent possible future cases that can choose to 
schedule transform depending on the const value content
   
   


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