Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 7.3k
[tests] refactor UNet model tests to align with the new pattern#13153
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
14439ab0e42a3f2b67fb646d44b73371560ca4a7b03a61081ea08148ffb254a0411da7ecbaed7c6e699299de4ce5f8303fecfd3b417257b5bfebba487e7b8270f87e8db86669527ca54adf9b37944b7b5f0c66157c2de674c9a27de0a6bb441b036b43d5d342d349b9File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -92,9 +92,6 @@ def test_torch_compile_repeated_blocks(self, recompile_limit=1): | ||
| model.eval() | ||
| model.compile_repeated_blocks(fullgraph=True) | ||
| if self.model_class.__name__ == "UNet2DConditionModel": | ||
| recompile_limit = 2 | ||
Comment on lines
-95
to
-97
MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not needed as we pass | ||
| with ( | ||
| torch._inductor.utils.fresh_inductor_cache(), | ||
| torch._dynamo.config.patch(recompile_limit=recompile_limit), | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
To ensure reproducibility.