Skip to content

Commit cadf689

Browse files
committed
Add another unit test to ensure correctness of pixel attention mask placement
1 parent 2e0c5bd commit cadf689

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/processors.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,9 @@ describe("Processors", () => {
711711
);
712712
compare(rows, [[0], [0], [0, 0]]);
713713
compare(cols, [[0], [0], [0, 0]]);
714+
715+
// Test that the order of the pixel attention mask matches the python implementation
716+
compare(pixel_attention_mask.data.reduce((a, b, i) => a + i * b, 0), 228217205216);
714717
}
715718

716719
{

0 commit comments

Comments
 (0)