Merged
docs: add torch.nn.attention.flex_attention.or_masks support status #43375
zhangjiahao-2026Add on Jul 30
docs: add torch.nn.attention.flex_attention.or_masks support status #43375
Merged
Total: 4 files changed+88-0
| @@ -23,6 +23,28 @@ | |||
| 23 | 23 | ||
| 24 | ### torch.nn.attention.flex_attention | 24 | ### torch.nn.attention.flex_attention |
| 25 | 25 | ||
| 26 | +#### BlockMask Utilities | ||
| 27 | + | ||
| 28 | +##### torch.nn.attention.flex_attention.or_masks | ||
| 29 | + | ||
| 30 | +<div style="margin-left: 2em"> | ||
| 31 | + | ||
| 32 | +**原生文档**:[torch.nn.attention.flex_attention.or_masks](https://docs.pytorch.org/docs/2.11/nn.attention.flex_attention.html#torch.nn.attention.flex_attention.or_masks) | ||
| 33 | + | ||
| 34 | +**产品支持情况**: | ||
| 35 | + | ||
| 36 | +<!-- npu="910b" id10 --> | ||
| 37 | +- <term>Atlas A2训练系列产品</term>:支持 | ||
| 38 | +<!-- end id10 --> | ||
| 39 | +<!-- npu="A3" id11 --> | ||
| 40 | +- <term>Atlas A3训练系列产品</term>:支持 | ||
| 41 | +<!-- end id11 --> | ||
| 42 | +<!-- npu="950" id12 --> | ||
| 43 | +- <term>Ascend 950DT系列产品</term>:支持 | ||
| 44 | +<!-- end id12 --> | ||
| 45 | + | ||
| 46 | +</div> | ||
| 47 | + | ||
| 26 | #### BlockMask | 48 | #### BlockMask |
| 27 | 49 | ||
| 28 | ##### <code><i>class</i></code> torch.nn.attention.flex_attention.BlockMask | 50 | ##### <code><i>class</i></code> torch.nn.attention.flex_attention.BlockMask |
| @@ -23,6 +23,28 @@ | |||
| 23 | 23 | ||
| 24 | ### torch.nn.attention.flex_attention | 24 | ### torch.nn.attention.flex_attention |
| 25 | 25 | ||
| 26 | +#### BlockMask Utilities | ||
| 27 | + | ||
| 28 | +##### torch.nn.attention.flex_attention.or_masks | ||
| 29 | + | ||
| 30 | +<div style="margin-left: 2em"> | ||
| 31 | + | ||
| 32 | +**原生文档**:[torch.nn.attention.flex_attention.or_masks](https://docs.pytorch.org/docs/2.12/nn.attention.flex_attention.html#torch.nn.attention.flex_attention.or_masks) | ||
| 33 | + | ||
| 34 | +**产品支持情况**: | ||
| 35 | + | ||
| 36 | +<!-- npu="910b" id10 --> | ||
| 37 | +- <term>Atlas A2训练系列产品</term>:支持 | ||
| 38 | +<!-- end id10 --> | ||
| 39 | +<!-- npu="A3" id11 --> | ||
| 40 | +- <term>Atlas A3训练系列产品</term>:支持 | ||
| 41 | +<!-- end id11 --> | ||
| 42 | +<!-- npu="950" id12 --> | ||
| 43 | +- <term>Ascend 950DT系列产品</term>:支持 | ||
| 44 | +<!-- end id12 --> | ||
| 45 | + | ||
| 46 | +</div> | ||
| 47 | + | ||
| 26 | #### BlockMask | 48 | #### BlockMask |
| 27 | 49 | ||
| 28 | ##### <code><i>class</i></code> torch.nn.attention.flex_attention.BlockMask | 50 | ##### <code><i>class</i></code> torch.nn.attention.flex_attention.BlockMask |
| @@ -23,6 +23,28 @@ | |||
| 23 | 23 | ||
| 24 | ### torch.nn.attention.flex_attention | 24 | ### torch.nn.attention.flex_attention |
| 25 | 25 | ||
| 26 | +#### BlockMask Utilities | ||
| 27 | + | ||
| 28 | +##### torch.nn.attention.flex_attention.or_masks | ||
| 29 | + | ||
| 30 | +<div style="margin-left: 2em"> | ||
| 31 | + | ||
| 32 | +**原生文档**:[torch.nn.attention.flex_attention.or_masks](https://docs.pytorch.org/docs/2.13/nn.attention.flex_attention.html#torch.nn.attention.flex_attention.or_masks) | ||
| 33 | + | ||
| 34 | +**产品支持情况**: | ||
| 35 | + | ||
| 36 | +<!-- npu="910b" id10 --> | ||
| 37 | +- <term>Atlas A2训练系列产品</term>:支持 | ||
| 38 | +<!-- end id10 --> | ||
| 39 | +<!-- npu="A3" id11 --> | ||
| 40 | +- <term>Atlas A3训练系列产品</term>:支持 | ||
| 41 | +<!-- end id11 --> | ||
| 42 | +<!-- npu="950" id12 --> | ||
| 43 | +- <term>Ascend 950DT系列产品</term>:支持 | ||
| 44 | +<!-- end id12 --> | ||
| 45 | + | ||
| 46 | +</div> | ||
| 47 | + | ||
| 26 | #### BlockMask | 48 | #### BlockMask |
| 27 | 49 | ||
| 28 | ##### <code><i>class</i></code> torch.nn.attention.flex_attention.BlockMask | 50 | ##### <code><i>class</i></code> torch.nn.attention.flex_attention.BlockMask |
| @@ -23,6 +23,28 @@ | |||
| 23 | 23 | ||
| 24 | ### torch.nn.attention.flex_attention | 24 | ### torch.nn.attention.flex_attention |
| 25 | 25 | ||
| 26 | +#### BlockMask Utilities | ||
| 27 | + | ||
| 28 | +##### torch.nn.attention.flex_attention.or_masks | ||
| 29 | + | ||
| 30 | +<div style="margin-left: 2em"> | ||
| 31 | + | ||
| 32 | +**原生文档**:[torch.nn.attention.flex_attention.or_masks](https://docs.pytorch.org/docs/2.7/nn.attention.flex_attention.html#torch.nn.attention.flex_attention.or_masks) | ||
| 33 | + | ||
| 34 | +**产品支持情况**: | ||
| 35 | + | ||
| 36 | +<!-- npu="910b" id10 --> | ||
| 37 | +- <term>Atlas A2训练系列产品</term>:支持 | ||
| 38 | +<!-- end id10 --> | ||
| 39 | +<!-- npu="A3" id11 --> | ||
| 40 | +- <term>Atlas A3训练系列产品</term>:支持 | ||
| 41 | +<!-- end id11 --> | ||
| 42 | +<!-- npu="950" id12 --> | ||
| 43 | +- <term>Ascend 950DT系列产品</term>:支持 | ||
| 44 | +<!-- end id12 --> | ||
| 45 | + | ||
| 46 | +</div> | ||
| 47 | + | ||
| 26 | #### BlockMask | 48 | #### BlockMask |
| 27 | 49 | ||
| 28 | ##### <code><i>class</i></code> torch.nn.attention.flex_attention.BlockMask | 50 | ##### <code><i>class</i></code> torch.nn.attention.flex_attention.BlockMask |