We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 210be4f commit 84b9df5Copy full SHA for 84b9df5
tests/test_models_unet.py
@@ -199,7 +199,7 @@ def prepare_init_args_and_inputs_for_common(self):
199
200
def test_gradient_checkpointing(self):
201
init_dict, inputs_dict = self.prepare_init_args_and_inputs_for_common()
202
- model = self.model_class(**init_dict)
+ model = self.model_class(**init_dict).eval()
203
model.to(torch_device)
204
205
out = model(**inputs_dict).sample
0 commit comments