Files
pytorch/test/inductor
Amin Sedaghat 767199fd9b [flex_attention] replace sliced BlockMask noop with helpful error (#164702)
Fixes part of #163314

After slicing BlockMask with `[]`, mask_mod was silently replaced with noop_mask. This caused silent incorrect results when users applied transformations to `sliced_mask.mask_mod`.

Replace noop with `_sliced_mask_mod_error` that raises RuntimeError with guidance to use `base_mask.mask_mod` instead.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164702
Approved by: https://github.com/drisspg, https://github.com/BoyuanFeng
2025-10-20 03:46:16 +00:00
..
2025-05-19 00:31:34 +00:00
2025-10-13 01:48:55 +00:00
2025-09-08 22:44:09 +00:00
2025-09-08 22:44:09 +00:00
2025-10-13 01:48:55 +00:00