Skip to content

Commit fc57898

Browse files
faaanyhlky
andauthored
Update tests/pipelines/stable_diffusion/test_stable_diffusion.py
Co-authored-by: hlky <[email protected]>
1 parent 7fcb0da commit fc57898

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/pipelines/stable_diffusion/test_stable_diffusion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,7 @@ def test_stable_diffusion_pipeline_with_model_offloading(self):
11171117
pipe.unet.set_default_attn_processor()
11181118

11191119
backend_empty_cache(torch_device)
1120+
backend_reset_max_memory_allocated(torch_device)
11201121
backend_reset_peak_memory_stats(torch_device)
11211122

11221123
pipe.enable_model_cpu_offload(device=torch_device)

0 commit comments

Comments
 (0)