[Apache TVM Discuss] [Questions] Why SimplifyInference use CreateFunctionPass to create Pass

2022-06-20 Thread 578881718 via Apache TVM Discuss
yes,you are right. but SimplifyInferencePass ,this pass add some new node to the graph. but CreateFunctionPass just update one node of raw IRModule. --- [Visit Topic](https://discuss.tvm.apache.org/t/why-simplifyinference-use-createfunctionpass-to-create-pass/12979/3) to respond. You are

[Apache TVM Discuss] [Questions] Why SimplifyInference use CreateFunctionPass to create Pass

2022-06-19 Thread 578881718 via Apache TVM Discuss
hello,gays. I read the tvm pass code, but i so confuse, the SimplifyInferencePass use the {MixedModeMutator} to rewrite graph expr{node}, and return a expr. The {FunctionPassNode::operator()} loop the graph node , do pass for every node of graph. and restore the id:new_expr to update graph. th