-
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
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
a74a2e2
commit 61f7d10
Showing
1 changed file
with
30 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