Skip to content

Commit 176bb1b

Browse files
committed
up
1 parent 44ba88d commit 176bb1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/pipelines/test_pipelines_common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,6 +1563,9 @@ def _test_attention_slicing_forward_pass(
15631563
return
15641564

15651565
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()
15661569
pipe = self.pipeline_class(**components)
15671570
for component in pipe.components.values():
15681571
if hasattr(component, "set_default_attn_processor"):

0 commit comments

Comments
 (0)