New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AutoScheduler][Relay] Control compile engine cache via PassContext #7220
Conversation
2a93e21
to
7251a5b
Compare
The PR looks reasonable. I was wondering from time to time, when compiler cache could be potentially useful? |
I think it's useful to reduce the compile time when building a model? Like we only extract 25 tasks from a model with 50 conv2ds, meaning that we only compile 25 of them instead of 50. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…pache#7220) * [AutoScheduler][Relay] Control compile engine cache via PassContext * lint * lint
…pache#7220) * [AutoScheduler][Relay] Control compile engine cache via PassContext * lint * lint
…pache#7220) * [AutoScheduler][Relay] Control compile engine cache via PassContext * lint * lint
…pache#7220) * [AutoScheduler][Relay] Control compile engine cache via PassContext * lint * lint
…pache#7220) * [AutoScheduler][Relay] Control compile engine cache via PassContext * lint * lint
Use PassContext to disable the compile engine cache, so that we can maintain all required information (i.e., in the
TracingEnvironment
).cc @merrymercy @jcf94 @zhiics @icemelon9