Files
pytorch/torch
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-10-18 18:51:52 +00:00
2025-10-18 18:51:52 +00:00
2025-10-18 07:36:18 +00:00
2025-10-15 22:49:15 +00:00
2025-10-10 17:23:31 +00:00
2025-10-18 05:44:14 +00:00
2025-10-14 14:22:54 +00:00
2025-10-08 02:30:57 +00:00
2025-10-13 01:48:55 +00:00
2025-10-18 05:44:14 +00:00