masahi commented on issue #7530: URL: https://github.com/apache/tvm/issues/7530#issuecomment-786465121
We can add `SimplifyInference` to prereq passes list in `FoldConstant`: https://github.com/apache/tvm/blob/4e211a735221a9b9d188422025e2d464e37b3c96/src/relay/transforms/fold_constant.cc#L386 If we do this, ``` return CreateFunctionPass(pass_func, 2, "FoldConstant", {"SimplifyInference"}); ``` `SimplifyInference` will automatically run before `FoldConstant`. But then `SimplifyInference` would run too many times. ---------------------------------------------------------------- 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: [email protected]
