Commit b5c684f0 authored by Patrick von Platen's avatar Patrick von Platen
Browse files

fix flaky cpu test

parent da8e87e2
...@@ -1046,6 +1046,10 @@ class PipelineTesterMixin(unittest.TestCase): ...@@ -1046,6 +1046,10 @@ class PipelineTesterMixin(unittest.TestCase):
torch.manual_seed(0) torch.manual_seed(0)
image = sde_ve(num_inference_steps=2) image = sde_ve(num_inference_steps=2)
if model.device.type == "cpu":
expected_image_sum = 3384805888.0
expected_image_mean = 1076.00085
else:
expected_image_sum = 3382849024.0 expected_image_sum = 3382849024.0
expected_image_mean = 1075.3788 expected_image_mean = 1075.3788
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment