-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AOT] Remove duplication in tvm.testing.aot.compile_models (#15032)
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.
- Loading branch information
1 parent
21361a6
commit 6c6ad6c
Showing
1 changed file
with
31 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters