We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44ba88d commit 176bb1bCopy full SHA for 176bb1b
tests/pipelines/test_pipelines_common.py
@@ -1563,6 +1563,9 @@ def _test_attention_slicing_forward_pass(
1563
return
1564
1565
components = self.get_dummy_components()
1566
+ for key in components:
1567
+ if "text_encoder" in key and hasattr(components[key], "eval"):
1568
+ components[key].eval()
1569
pipe = self.pipeline_class(**components)
1570
for component in pipe.components.values():
1571
if hasattr(component, "set_default_attn_processor"):
0 commit comments