Skip to content

Commit 9c67ac4

Browse files
committed
update
1 parent 9dd85c8 commit 9c67ac4

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
@@ -2715,6 +2715,9 @@ def test_pyramid_attention_broadcast_inference(self, expected_atol: float = 0.2)
27152715
device = "cpu" # ensure determinism for the device-dependent torch.Generator
27162716
num_layers = 2
27172717
components = self.get_dummy_components(num_layers=num_layers)
2718+
for key in components:
2719+
if "text_encoder" in key and hasattr(components[key], "eval"):
2720+
components[key].eval()
27182721
pipe = self.pipeline_class(**components)
27192722
pipe = pipe.to(device)
27202723
pipe.set_progress_bar_config(disable=None)

0 commit comments

Comments
 (0)