Skip to content

Commit a91ad9f

Browse files
committed
up
1 parent 176bb1b commit a91ad9f

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
@@ -1298,6 +1298,9 @@ def _test_inference_batch_single_identical(
12981298
additional_params_copy_to_batched_inputs=["num_inference_steps"],
12991299
):
13001300
components = self.get_dummy_components()
1301+
for key in components:
1302+
if "text_encoder" in key and hasattr(components[key], "eval"):
1303+
components[key].eval()
13011304
pipe = self.pipeline_class(**components)
13021305
for components in pipe.components.values():
13031306
if hasattr(components, "set_default_attn_processor"):

0 commit comments

Comments
 (0)