Expand description
Side-by-side comparison utilities for attention masks.
Structs§
- Comparison
Result - Result of comparing two attention masks.
Functions§
- compare_
attention_ masks - Full comparison of two attention masks.
- edge_
flip_ count - Counts positions where the two masks disagree.
- jaccard_
similarity - Jaccard similarity:
|A & B| / |A | B|. Returns1.0for two empty masks.