Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
84b9df57
Unverified
Commit
84b9df57
authored
Sep 29, 2022
by
Suraj Patil
Committed by
GitHub
Sep 29, 2022
Browse files
[gradient checkpointing] lower tolerance for test (#652)
* lowe tolerance * put model in eval mode
parent
210be4fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_models_unet.py
tests/test_models_unet.py
+1
-1
No files found.
tests/test_models_unet.py
View file @
84b9df57
...
...
@@ -199,7 +199,7 @@ class UNet2DConditionModelTests(ModelTesterMixin, unittest.TestCase):
def
test_gradient_checkpointing
(
self
):
init_dict
,
inputs_dict
=
self
.
prepare_init_args_and_inputs_for_common
()
model
=
self
.
model_class
(
**
init_dict
)
model
=
self
.
model_class
(
**
init_dict
)
.
eval
()
model
.
to
(
torch_device
)
out
=
model
(
**
inputs_dict
).
sample
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment