Skip to content

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.
@Lunderberg Lunderberg force-pushed the aot_build_deduplicate branch from 61f7d10 to 23113a5 Compare June 10, 2023 23:48
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
@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.

3 participants