Merged
docs: 修正 masked_softmax_with_rel_pos_bias 算子 aclnn 接口文档中 attenMaskOptional 可空性与 161001 错误码描述矛盾 #13934
aiteerAdd on 13 days ago
docs: 修正 masked_softmax_with_rel_pos_bias 算子 aclnn 接口文档中 attenMaskOptional 可空性与 161001 错误码描述矛盾 #13934
Merged
Total: 2 files changed+4-4
| @@ -92,7 +92,7 @@ aclnnStatus aclnnMaskedSoftmaxWithRelPosBias( | |||
| 92 | <td>attenMaskOptional</td> | 92 | <td>attenMaskOptional</td> |
| 93 | <td>输入</td> | 93 | <td>输入</td> |
| 94 | <td>待计算入参,对应公式中的attenMaskOptional。</td> | 94 | <td>待计算入参,对应公式中的attenMaskOptional。</td> |
| 95 | - <td>shape为3维(W, S1, S2)、4维(W, 1, S1, S2)或5维(1, W, 1, S1, S2)</td> | 95 | + <td>shape为3维(W, S1, S2)、4维(W, 1, S1, S2)或5维(1, W, 1, S1, S2);允许传nullptr,传nullptr时按无mask计算</td> |
| 96 | <td>FLOAT、FLOAT16、BFLOAT16</td> | 96 | <td>FLOAT、FLOAT16、BFLOAT16</td> |
| 97 | <td>ND</td> | 97 | <td>ND</td> |
| 98 | <td>√</td> | 98 | <td>√</td> |
| @@ -177,7 +177,7 @@ aclnnStatus aclnnMaskedSoftmaxWithRelPosBias( | |||
| 177 | <tr> | 177 | <tr> |
| 178 | <td>ACLNN_ERR_PARAM_NULLPTR</td> | 178 | <td>ACLNN_ERR_PARAM_NULLPTR</td> |
| 179 | <td>161001</td> | 179 | <td>161001</td> |
| 180 | - <td>传入的x、attenMaskOptional、relativePosBias或out是空指针。</td> | 180 | + <td>传入的x、relativePosBias或out是空指针。</td> |
| 181 | </tr> | 181 | </tr> |
| 182 | <tr> | 182 | <tr> |
| 183 | <td>ACLNN_ERR_PARAM_INVALID</td> | 183 | <td>ACLNN_ERR_PARAM_INVALID</td> |
| @@ -94,7 +94,7 @@ aclnnStatus aclnnMaskedSoftmaxWithRelPosBias( | |||
| 94 | <td>attenMaskOptional</td> | 94 | <td>attenMaskOptional</td> |
| 95 | <td>Input</td> | 95 | <td>Input</td> |
| 96 | <td>Input to be computed, corresponding to attenMaskOptional in the formula.</td> | 96 | <td>Input to be computed, corresponding to attenMaskOptional in the formula.</td> |
| 97 | - <td>3D (W, S1, S2), 4D (W, 1, S1, S2), or 5D (1, W, 1, S1, S2)</td> | 97 | + <td>3D (W, S1, S2), 4D (W, 1, S1, S2), or 5D (1, W, 1, S1, S2); passing nullptr is allowed, which is equivalent to computing without a mask</td> |
| 98 | <td>FLOAT, FLOAT16, BFLOAT16</td> | 98 | <td>FLOAT, FLOAT16, BFLOAT16</td> |
| 99 | <td>ND</td> | 99 | <td>ND</td> |
| 100 | <td>√</td> | 100 | <td>√</td> |
| @@ -179,7 +179,7 @@ aclnnStatus aclnnMaskedSoftmaxWithRelPosBias( | |||
| 179 | <tr> | 179 | <tr> |
| 180 | <td>ACLNN_ERR_PARAM_NULLPTR</td> | 180 | <td>ACLNN_ERR_PARAM_NULLPTR</td> |
| 181 | <td>161001</td> | 181 | <td>161001</td> |
| 182 | - <td>x, attenMaskOptional, relativePosBias, or out is a null pointer.</td> | 182 | + <td>x, relativePosBias, or out is a null pointer.</td> |
| 183 | </tr> | 183 | </tr> |
| 184 | <tr> | 184 | <tr> |
| 185 | <td>ACLNN_ERR_PARAM_INVALID</td> | 185 | <td>ACLNN_ERR_PARAM_INVALID</td> |