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.
None
test_save_load_optional_components
1 parent 3e2fc0b commit 1e6b40eCopy full SHA for 1e6b40e
tests/test_pipelines_common.py
@@ -394,9 +394,10 @@ def test_save_load_optional_components(self):
394
pipe.to(torch_device)
395
pipe.set_progress_bar_config(disable=None)
396
397
- # set all optional components to None
+ # set all optional components to None and update pipeline config accordingly
398
for optional_component in pipe._optional_components:
399
setattr(pipe, optional_component, None)
400
+ pipe.register_modules(**{optional_component: None for optional_component in pipe._optional_components})
401
402
inputs = self.get_dummy_inputs(torch_device)
403
output = pipe(**inputs)[0]
0 commit comments