Skip to content

Commit 2b59994

Browse files
authored
Apply suggestions from code review
1 parent fe93975 commit 2b59994

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pipelines/test_pipelines_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@ def test_pyramid_attention_broadcast_layers(self):
23342334
pipe = self.pipeline_class(**components)
23352335
pipe.set_progress_bar_config(disable=None)
23362336

2337-
self.pab_config.current_timestep_callback = lambda: pipe._current_timestep
2337+
self.pab_config.current_timestep_callback = lambda: pipe.current_timestep
23382338
denoiser = pipe.transformer if hasattr(pipe, "transformer") else pipe.unet
23392339
denoiser.enable_cache(self.pab_config)
23402340

@@ -2417,7 +2417,7 @@ def test_pyramid_attention_broadcast_inference(self, expected_atol: float = 0.2)
24172417
original_image_slice = np.concatenate((original_image_slice[:8], original_image_slice[-8:]))
24182418

24192419
# Run inference with PAB enabled
2420-
self.pab_config.current_timestep_callback = lambda: pipe._current_timestep
2420+
self.pab_config.current_timestep_callback = lambda: pipe.current_timestep
24212421
denoiser = pipe.transformer if hasattr(pipe, "transformer") else pipe.unet
24222422
denoiser.enable_cache(self.pab_config)
24232423

0 commit comments

Comments
 (0)