Skip to content

Commit 19f9292

Browse files
committed
assertFalse.
1 parent 51b8bc7 commit 19f9292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lora/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,8 +1928,8 @@ def test_set_adapters_match_attention_kwargs(self):
19281928
lora_scale = 0.5
19291929
attention_kwargs = {attention_kwargs_name: {"scale": lora_scale}}
19301930
output_lora_scale = pipe(**inputs, generator=torch.manual_seed(0), **attention_kwargs)[0]
1931-
self.assertTrue(
1932-
not np.allclose(output_no_lora, output_lora_scale, atol=1e-3, rtol=1e-3),
1931+
self.assertFalse(
1932+
np.allclose(output_no_lora, output_lora_scale, atol=1e-3, rtol=1e-3),
19331933
"Lora + scale should change the output",
19341934
)
19351935

0 commit comments

Comments
 (0)