Skip to content
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

[AOT] Remove duplication in tvm.testing.aot.compile_models #15032

Merged
merged 1 commit into from Jun 13, 2023

Conversation

Lunderberg
Copy link
Contributor

Previously, the body of an if/else were nearly identical, except for a with apply_fixed_config context. This commit removes the duplication using contextlib.ExitStack to conditionally enter the context.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Jun 6, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

Previously, the body of an if/else were nearly identical, except for a
`with apply_fixed_config` context.  This commit removes the
duplication using `contextlib.ExitStack` to conditionally enter the
context.
Copy link
Contributor

@lhutton1 lhutton1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the simplification @Lunderberg!

@lhutton1 lhutton1 merged commit 6c6ad6c into apache:main Jun 13, 2023
18 checks passed
@Lunderberg Lunderberg deleted the aot_build_deduplicate branch June 13, 2023 13:35
junrushao pushed a commit to junrushao/tvm that referenced this pull request Jun 22, 2023
)

Previously, the body of an if/else were nearly identical, except for a
`with apply_fixed_config` context.  This commit removes the
duplication using `contextlib.ExitStack` to conditionally enter the
context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants