mbarrett97 opened a new pull request #4864: [Relay] Ignore Primitive functions 
in Visitors
URL: https://github.com/apache/incubator-tvm/pull/4864
 
 
   Primitive functions are not to be modified by passes and as such should be 
ignored. This commit makes Visitor patterns ignore Primitive functions by 
default, although this can be overridden by setting enter_primitives=true. One 
case in which this overriding is necessary is in the type_infer pass.
   
   This is motivated by the discussions 
[external-codegen-ensure-fuseops-ignores-partitioned-subgraphs](https://discuss.tvm.ai/t/external-codegen-ensure-fuseops-ignores-partitioned-subgraphs/5507)
 and 
[external-codegen-how-to-prevent-batch-norm-from-being-decomposed](https://discuss.tvm.ai/t/external-codegen-how-to-prevent-batch-norm-from-being-decomposed/5449).

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


With regards,
Apache Git Services

Reply via email to