Skip to content

Commit 22c8673

Browse files
committed
fixing hunyuan attn mask test case
1 parent 9ba4496 commit 22c8673

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/models/autoencoders/test_models_autoencoder_hunyuan_video.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,7 @@ def prepare_causal_attention_mask_orig(
204204
new_mask = prepare_causal_attention_mask(
205205
num_frames=31, height_width=111, dtype=torch.float32, device=torch_device
206206
)
207-
self.assertEqual(original_mask, new_mask)
207+
self.assertTrue(
208+
torch.allclose(original_mask, new_mask),
209+
"Causal attention mask should be the same",
210+
)

0 commit comments

Comments
 (0)