已合并
md大模型检测低错修改 #5183
chenjiao创建于 4 天前
md大模型检测低错修改 #5183
已合并
共 682 个文件变更+1920-1934
| @@ -23,7 +23,7 @@ $$ | |||
| 23 | 23 | ||
| 24 | ## 参数说明 | 24 | ## 参数说明 |
| 25 | 25 | ||
| 26 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 26 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 27 | <col style="width: 100px"> | 27 | <col style="width: 100px"> |
| 28 | <col style="width: 150px"> | 28 | <col style="width: 150px"> |
| 29 | <col style="width: 280px"> | 29 | <col style="width: 280px"> |
| @@ -21,7 +21,7 @@ $$out_i=value_i$$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -27,7 +27,7 @@ $$ | |||
| 27 | 27 | ||
| 28 | ## 参数说明 | 28 | ## 参数说明 |
| 29 | 29 | ||
| 30 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 30 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 31 | <col style="width: 100px"> | 31 | <col style="width: 100px"> |
| 32 | <col style="width: 150px"> | 32 | <col style="width: 150px"> |
| 33 | <col style="width: 280px"> | 33 | <col style="width: 280px"> |
| @@ -29,7 +29,7 @@ | |||
| 29 | 29 | ||
| 30 | ## 参数说明 | 30 | ## 参数说明 |
| 31 | 31 | ||
| 32 | -<table style="undefined;table-layout: fixed; width: 1480px"> | 32 | +<table style="table-layout: fixed; width: 1480px"> |
| 33 | <colgroup> | 33 | <colgroup> |
| 34 | <col style="width: 177px"> | 34 | <col style="width: 177px"> |
| 35 | <col style="width: 120px"> | 35 | <col style="width: 120px"> |
| @@ -20,9 +20,9 @@ | |||
| 20 | 20 | ||
| 21 | - 计算公式: | 21 | - 计算公式: |
| 22 | 设输入张量x为N维,形状为 $[x_0, x_1, \ldots, x_{N-1}]$,block_shape为M维1D张量 $[b_0, b_1, \ldots, b_{M-1}]$,crops为 $M \times 2$ 的2D张量 $[[c_{00}, c_{01}], [c_{10}, c_{11}], \ldots, [c_{M-1,0}, c_{M-1,1}]]$,满足 $1 \leq M < N \leq 8$。 | 22 | 设输入张量x为N维,形状为 $[x_0, x_1, \ldots, x_{N-1}]$,block_shape为M维1D张量 $[b_0, b_1, \ldots, b_{M-1}]$,crops为 $M \times 2$ 的2D张量 $[[c_{00}, c_{01}], [c_{10}, c_{11}], \ldots, [c_{M-1,0}, c_{M-1,1}]]$,满足 $1 \leq M < N \leq 8$。 |
| 23 | - | 23 | + |
| 24 | 输出张量y形状为 $[y_0, y_1, \ldots, y_{N-1}]$,计算方式如下: | 24 | 输出张量y形状为 $[y_0, y_1, \ldots, y_{N-1}]$,计算方式如下: |
| 25 | - | 25 | + |
| 26 | $$ | 26 | $$ |
| 27 | y_i = \begin{cases} | 27 | y_i = \begin{cases} |
| 28 | \frac{x_0}{\prod_{j=0}^{M-1} b_j}, & i = 0 \\ | 28 | \frac{x_0}{\prod_{j=0}^{M-1} b_j}, & i = 0 \\ |
| @@ -30,12 +30,12 @@ | |||
| 30 | x_i, & M+1 \leq i \leq N-1 | 30 | x_i, & M+1 \leq i \leq N-1 |
| 31 | \end{cases} | 31 | \end{cases} |
| 32 | $$ | 32 | $$ |
| 33 | - | 33 | + |
| 34 | 其中,$x_0$ 必须能够被 $\prod_{j=0}^{M-1} b_j$ 整除。 | 34 | 其中,$x_0$ 必须能够被 $\prod_{j=0}^{M-1} b_j$ 整除。 |
| 35 | 35 | ||
| 36 | ## 参数说明 | 36 | ## 参数说明 |
| 37 | 37 | ||
| 38 | -<table style="undefined;table-layout: fixed; width: 1480px"> | 38 | +<table style="table-layout: fixed; width: 1480px"> |
| 39 | <colgroup> | 39 | <colgroup> |
| 40 | <col style="width: 177px"> | 40 | <col style="width: 177px"> |
| 41 | <col style="width: 120px"> | 41 | <col style="width: 120px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnChunkCat( | |||
| 53 | 53 | ||
| 54 | - **参数说明** | 54 | - **参数说明** |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 57 | <col style="width: 211px"> | 57 | <col style="width: 211px"> |
| 58 | <col style="width: 120px"> | 58 | <col style="width: 120px"> |
| 59 | <col style="width: 266px"> | 59 | <col style="width: 266px"> |
| @@ -143,7 +143,7 @@ aclnnStatus aclnnChunkCat( | |||
| 143 | 143 | ||
| 144 | 第一段接口完成入参校验,出现以下场景时报错: | 144 | 第一段接口完成入参校验,出现以下场景时报错: |
| 145 | 145 | ||
| 146 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 146 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 147 | <col style="width: 291px"> | 147 | <col style="width: 291px"> |
| 148 | <col style="width: 135px"> | 148 | <col style="width: 135px"> |
| 149 | <col style="width: 724px"> | 149 | <col style="width: 724px"> |
| @@ -184,7 +184,7 @@ aclnnStatus aclnnChunkCat( | |||
| 184 | 184 | ||
| 185 | - **参数说明** | 185 | - **参数说明** |
| 186 | 186 | ||
| 187 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 187 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 188 | <col style="width: 184px"> | 188 | <col style="width: 184px"> |
| 189 | <col style="width: 134px"> | 189 | <col style="width: 134px"> |
| 190 | <col style="width: 832px"> | 190 | <col style="width: 832px"> |
| @@ -328,7 +328,7 @@ int main() { | |||
| 328 | 328 | ||
| 329 | std::vector<aclTensor*> tmp{input1, input2}; | 329 | std::vector<aclTensor*> tmp{input1, input2}; |
| 330 | aclTensorList* tensorList = aclCreateTensorList(tmp.data(), tmp.size()); | 330 | aclTensorList* tensorList = aclCreateTensorList(tmp.data(), tmp.size()); |
| 331 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 331 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 332 | int64_t dim = 0; | 332 | int64_t dim = 0; |
| 333 | int64_t numChunks = 2; | 333 | int64_t numChunks = 2; |
| 334 | uint64_t workspaceSize = 0; | 334 | uint64_t workspaceSize = 0; |
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | ### CircularPad2d | 24 | ### CircularPad2d |
| 25 | 25 | ||
| 26 | -<table style="undefined;table-layout: fixed; width: 974px"><colgroup> | 26 | +<table style="table-layout: fixed; width: 974px"><colgroup> |
| 27 | <col style="width: 139px"> | 27 | <col style="width: 139px"> |
| 28 | <col style="width: 146px"> | 28 | <col style="width: 146px"> |
| 29 | <col style="width: 342px"> | 29 | <col style="width: 342px"> |
| @@ -65,7 +65,7 @@ | |||
| 65 | 65 | ||
| 66 | ### CircularPad3d | 66 | ### CircularPad3d |
| 67 | 67 | ||
| 68 | -<table style="undefined;table-layout: fixed; width: 974px"><colgroup> | 68 | +<table style="table-layout: fixed; width: 974px"><colgroup> |
| 69 | <col style="width: 139px"> | 69 | <col style="width: 139px"> |
| 70 | <col style="width: 146px"> | 70 | <col style="width: 146px"> |
| 71 | <col style="width: 342px"> | 71 | <col style="width: 342px"> |
| @@ -66,7 +66,7 @@ aclnnStatus aclnnCircularPad2d( | |||
| 66 | ## aclnnCircularPad2dGetWorkspaceSize | 66 | ## aclnnCircularPad2dGetWorkspaceSize |
| 67 | 67 | ||
| 68 | - **参数说明** | 68 | - **参数说明** |
| 69 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 69 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 70 | <col style="width: 211px"> | 70 | <col style="width: 211px"> |
| 71 | <col style="width: 120px"> | 71 | <col style="width: 120px"> |
| 72 | <col style="width: 266px"> | 72 | <col style="width: 266px"> |
| @@ -145,7 +145,7 @@ aclnnStatus aclnnCircularPad2d( | |||
| 145 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 145 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 146 | 146 | ||
| 147 | 第一段接口完成入参校验,出现以下场景时报错: | 147 | 第一段接口完成入参校验,出现以下场景时报错: |
| 148 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 148 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 149 | <col style="width: 291px"> | 149 | <col style="width: 291px"> |
| 150 | <col style="width: 135px"> | 150 | <col style="width: 135px"> |
| 151 | <col style="width: 724px"> | 151 | <col style="width: 724px"> |
| @@ -191,7 +191,7 @@ aclnnStatus aclnnCircularPad2d( | |||
| 191 | ## aclnnCircularPad2d | 191 | ## aclnnCircularPad2d |
| 192 | 192 | ||
| 193 | - **参数说明** | 193 | - **参数说明** |
| 194 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 194 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 195 | <col style="width: 184px"> | 195 | <col style="width: 184px"> |
| 196 | <col style="width: 134px"> | 196 | <col style="width: 134px"> |
| 197 | <col style="width: 832px"> | 197 | <col style="width: 832px"> |
| @@ -76,7 +76,7 @@ aclnnStatus aclnnCircularPad3d( | |||
| 76 | 76 | ||
| 77 | - **参数说明** | 77 | - **参数说明** |
| 78 | 78 | ||
| 79 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 79 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 80 | <col style="width: 211px"> | 80 | <col style="width: 211px"> |
| 81 | <col style="width: 120px"> | 81 | <col style="width: 120px"> |
| 82 | <col style="width: 266px"> | 82 | <col style="width: 266px"> |
| @@ -156,7 +156,7 @@ aclnnStatus aclnnCircularPad3d( | |||
| 156 | 156 | ||
| 157 | 第一段接口完成入参校验,出现以下场景时报错: | 157 | 第一段接口完成入参校验,出现以下场景时报错: |
| 158 | 158 | ||
| 159 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 159 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 160 | <col style="width: 291px"> | 160 | <col style="width: 291px"> |
| 161 | <col style="width: 135px"> | 161 | <col style="width: 135px"> |
| 162 | <col style="width: 724px"> | 162 | <col style="width: 724px"> |
| @@ -203,7 +203,7 @@ aclnnStatus aclnnCircularPad3d( | |||
| 203 | 203 | ||
| 204 | - **参数说明** | 204 | - **参数说明** |
| 205 | 205 | ||
| 206 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 206 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 207 | <col style="width: 184px"> | 207 | <col style="width: 184px"> |
| 208 | <col style="width: 134px"> | 208 | <col style="width: 134px"> |
| 209 | <col style="width: 832px"> | 209 | <col style="width: 832px"> |
| @@ -21,7 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | ### CircularPad2dBackward | 22 | ### CircularPad2dBackward |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 1007px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 1007px"><colgroup> |
| 25 | <col style="width: 139px"> | 25 | <col style="width: 139px"> |
| 26 | <col style="width: 146px"> | 26 | <col style="width: 146px"> |
| 27 | <col style="width: 342px"> | 27 | <col style="width: 342px"> |
| @@ -70,7 +70,7 @@ | |||
| 70 | 70 | ||
| 71 | ### CircularPad3dBackward | 71 | ### CircularPad3dBackward |
| 72 | 72 | ||
| 73 | -<table style="undefined;table-layout: fixed; width: 1007px"><colgroup> | 73 | +<table style="table-layout: fixed; width: 1007px"><colgroup> |
| 74 | <col style="width: 139px"> | 74 | <col style="width: 139px"> |
| 75 | <col style="width: 146px"> | 75 | <col style="width: 146px"> |
| 76 | <col style="width: 342px"> | 76 | <col style="width: 342px"> |
| @@ -61,7 +61,7 @@ aclnnStatus aclnnCircularPad2dBackward( | |||
| 61 | 61 | ||
| 62 | - **参数说明** | 62 | - **参数说明** |
| 63 | 63 | ||
| 64 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 64 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 65 | <col style="width: 211px"> | 65 | <col style="width: 211px"> |
| 66 | <col style="width: 120px"> | 66 | <col style="width: 120px"> |
| 67 | <col style="width: 266px"> | 67 | <col style="width: 266px"> |
| @@ -150,7 +150,7 @@ aclnnStatus aclnnCircularPad2dBackward( | |||
| 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现以下场景时报错: | 152 | 第一段接口完成入参校验,出现以下场景时报错: |
| 153 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 153 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 154 | <col style="width: 291px"> | 154 | <col style="width: 291px"> |
| 155 | <col style="width: 135px"> | 155 | <col style="width: 135px"> |
| 156 | <col style="width: 724px"> | 156 | <col style="width: 724px"> |
| @@ -199,7 +199,7 @@ aclnnStatus aclnnCircularPad2dBackward( | |||
| 199 | 199 | ||
| 200 | - **参数说明:** | 200 | - **参数说明:** |
| 201 | 201 | ||
| 202 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 202 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 203 | <col style="width: 184px"> | 203 | <col style="width: 184px"> |
| 204 | <col style="width: 134px"> | 204 | <col style="width: 134px"> |
| 205 | <col style="width: 832px"> | 205 | <col style="width: 832px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnCircularPad3dBackward( | |||
| 53 | 53 | ||
| 54 | - **参数说明** | 54 | - **参数说明** |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 57 | <col style="width: 211px"> | 57 | <col style="width: 211px"> |
| 58 | <col style="width: 120px"> | 58 | <col style="width: 120px"> |
| 59 | <col style="width: 266px"> | 59 | <col style="width: 266px"> |
| @@ -142,7 +142,7 @@ aclnnStatus aclnnCircularPad3dBackward( | |||
| 142 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 142 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 143 | 143 | ||
| 144 | 第一段接口完成入参校验,出现以下场景时报错: | 144 | 第一段接口完成入参校验,出现以下场景时报错: |
| 145 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 145 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 146 | <col style="width: 291px"> | 146 | <col style="width: 291px"> |
| 147 | <col style="width: 135px"> | 147 | <col style="width: 135px"> |
| 148 | <col style="width: 724px"> | 148 | <col style="width: 724px"> |
| @@ -191,7 +191,7 @@ aclnnStatus aclnnCircularPad3dBackward( | |||
| 191 | 191 | ||
| 192 | - **参数说明** | 192 | - **参数说明** |
| 193 | 193 | ||
| 194 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 194 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 195 | <col style="width: 184px"> | 195 | <col style="width: 184px"> |
| 196 | <col style="width: 134px"> | 196 | <col style="width: 134px"> |
| 197 | <col style="width: 832px"> | 197 | <col style="width: 832px"> |
| @@ -21,7 +21,7 @@ $$y_i = \max(\text{select\_ones}(x_i \leq \text{greater\_zeros}_i, x_i, \text{sq | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 150px"> | 25 | <col style="width: 150px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 330px"> | 27 | <col style="width: 330px"> |
| @@ -22,7 +22,7 @@ $$ | |||
| 22 | 22 | ||
| 23 | ## 参数说明 | 23 | ## 参数说明 |
| 24 | 24 | ||
| 25 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 25 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 26 | <col style="width: 170px"> | 26 | <col style="width: 170px"> |
| 27 | <col style="width: 170px"> | 27 | <col style="width: 170px"> |
| 28 | <col style="width: 310px"> | 28 | <col style="width: 310px"> |
| @@ -42,7 +42,7 @@ $$ | |||
| 42 | <td>x</td> | 42 | <td>x</td> |
| 43 | <td>输入</td> | 43 | <td>输入</td> |
| 44 | <td>输入张量。</td> | 44 | <td>输入张量。</td> |
| 45 | - <td>INT8、INT16、INT32、INT64、UINT8、UINT16、 <br> | 45 | + <td>INT8、INT16、INT32、INT64、UINT8、UINT16、 <br> |
| 46 | FLOAT16、FLOAT、DOUBLE、BOOL、BFLOAT16、COMPLEX32、COMPLEX64、COMPLEX128</td> | 46 | FLOAT16、FLOAT、DOUBLE、BOOL、BFLOAT16、COMPLEX32、COMPLEX64、COMPLEX128</td> |
| 47 | <td>ND</td> | 47 | <td>ND</td> |
| 48 | </tr> | 48 | </tr> |
| @@ -22,7 +22,7 @@ $$ | |||
| 22 | 22 | ||
| 23 | ## 参数说明 | 23 | ## 参数说明 |
| 24 | 24 | ||
| 25 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 25 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 26 | <col style="width: 170px"> | 26 | <col style="width: 170px"> |
| 27 | <col style="width: 170px"> | 27 | <col style="width: 170px"> |
| 28 | <col style="width: 310px"> | 28 | <col style="width: 310px"> |
| @@ -42,7 +42,7 @@ $$ | |||
| 42 | <td>x</td> | 42 | <td>x</td> |
| 43 | <td>输入</td> | 43 | <td>输入</td> |
| 44 | <td>输入张量。</td> | 44 | <td>输入张量。</td> |
| 45 | - <td>INT8、INT16、INT32、INT64、UINT8、UINT16、UINT32、UINT64 <br> | 45 | + <td>INT8、INT16、INT32、INT64、UINT8、UINT16、UINT32、UINT64 <br> |
| 46 | FLOAT16、FLOAT、DOUBLE、BOOL、BFLOAT16、COMPLEX64、COMPLEX128</td> | 46 | FLOAT16、FLOAT、DOUBLE、BOOL、BFLOAT16、COMPLEX64、COMPLEX128</td> |
| 47 | <td>ND</td> | 47 | <td>ND</td> |
| 48 | </tr> | 48 | </tr> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -52,7 +52,7 @@ aclnnStatus aclnnCat( | |||
| 52 | 52 | ||
| 53 | - **参数说明** | 53 | - **参数说明** |
| 54 | 54 | ||
| 55 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 55 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 56 | <col style="width: 211px"> | 56 | <col style="width: 211px"> |
| 57 | <col style="width: 120px"> | 57 | <col style="width: 120px"> |
| 58 | <col style="width: 266px"> | 58 | <col style="width: 266px"> |
| @@ -138,7 +138,7 @@ aclnnStatus aclnnCat( | |||
| 138 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 138 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 139 | 139 | ||
| 140 | 第一段接口完成入参校验,出现以下场景时报错: | 140 | 第一段接口完成入参校验,出现以下场景时报错: |
| 141 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 141 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 142 | <col style="width: 291px"> | 142 | <col style="width: 291px"> |
| 143 | <col style="width: 135px"> | 143 | <col style="width: 135px"> |
| 144 | <col style="width: 724px"> | 144 | <col style="width: 724px"> |
| @@ -179,7 +179,7 @@ aclnnStatus aclnnCat( | |||
| 179 | 179 | ||
| 180 | - **参数说明** | 180 | - **参数说明** |
| 181 | 181 | ||
| 182 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 182 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 183 | <col style="width: 184px"> | 183 | <col style="width: 184px"> |
| 184 | <col style="width: 134px"> | 184 | <col style="width: 134px"> |
| 185 | <col style="width: 832px"> | 185 | <col style="width: 832px"> |
| @@ -325,7 +325,7 @@ int main() { | |||
| 325 | 325 | ||
| 326 | std::vector<aclTensor*> tmp{input1, input2}; | 326 | std::vector<aclTensor*> tmp{input1, input2}; |
| 327 | aclTensorList* tensorList = aclCreateTensorList(tmp.data(), tmp.size()); | 327 | aclTensorList* tensorList = aclCreateTensorList(tmp.data(), tmp.size()); |
| 328 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 328 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 329 | int64_t dim = 0; | 329 | int64_t dim = 0; |
| 330 | uint64_t workspaceSize = 0; | 330 | uint64_t workspaceSize = 0; |
| 331 | aclOpExecutor* executor; | 331 | aclOpExecutor* executor; |
| @@ -12,7 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | ## 参数说明 | 13 | ## 参数说明 |
| 14 | 14 | ||
| 15 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 15 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 16 | <col style="width: 100px"> | 16 | <col style="width: 100px"> |
| 17 | <col style="width: 150px"> | 17 | <col style="width: 150px"> |
| 18 | <col style="width: 280px"> | 18 | <col style="width: 280px"> |
| @@ -67,7 +67,7 @@ aclnnStatus aclnnConfusionTranspose( | |||
| 67 | 67 | ||
| 68 | - **参数说明**: | 68 | - **参数说明**: |
| 69 | 69 | ||
| 70 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 70 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 71 | <col style="width: 211px"> | 71 | <col style="width: 211px"> |
| 72 | <col style="width: 120px"> | 72 | <col style="width: 120px"> |
| 73 | <col style="width: 266px"> | 73 | <col style="width: 266px"> |
| @@ -123,7 +123,7 @@ aclnnStatus aclnnConfusionTranspose( | |||
| 123 | <td class="tg-0lax">transposeFirst(bool)</td> | 123 | <td class="tg-0lax">transposeFirst(bool)</td> |
| 124 | <td class="tg-0lax">输入</td> | 124 | <td class="tg-0lax">输入</td> |
| 125 | <td class="tg-0lax">判断是否先执行transpose操作。</td> | 125 | <td class="tg-0lax">判断是否先执行transpose操作。</td> |
| 126 | - <td class="tg-0lax">如果值为True ,首先执行transpose,否则先执行reshape 。</td> | 126 | + <td class="tg-0lax">如果值为True,首先执行transpose,否则先执行reshape。</td> |
| 127 | <td class="tg-0lax">BOOL</td> | 127 | <td class="tg-0lax">BOOL</td> |
| 128 | <td class="tg-0lax">-</td> | 128 | <td class="tg-0lax">-</td> |
| 129 | <td class="tg-0lax">-</td> | 129 | <td class="tg-0lax">-</td> |
| @@ -167,7 +167,7 @@ aclnnStatus aclnnConfusionTranspose( | |||
| 167 | 167 | ||
| 168 | 第一段接口完成入参校验,出现以下场景时报错: | 168 | 第一段接口完成入参校验,出现以下场景时报错: |
| 169 | 169 | ||
| 170 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 170 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 171 | <col style="width: 291px"> | 171 | <col style="width: 291px"> |
| 172 | <col style="width: 135px"> | 172 | <col style="width: 135px"> |
| 173 | <col style="width: 724px"> | 173 | <col style="width: 724px"> |
| @@ -187,7 +187,7 @@ aclnnStatus aclnnConfusionTranspose( | |||
| 187 | <tr> | 187 | <tr> |
| 188 | <td class="tg-0pky">ACLNN_ERR_PARAM_INVALID</td> | 188 | <td class="tg-0pky">ACLNN_ERR_PARAM_INVALID</td> |
| 189 | <td class="tg-0pky">161002</td> | 189 | <td class="tg-0pky">161002</td> |
| 190 | - <td class="tg-0pky">传入的x 、out的数据类型不在支持的范围之内。</td> | 190 | + <td class="tg-0pky">传入的x、out的数据类型不在支持的范围之内。</td> |
| 191 | </tr> | 191 | </tr> |
| 192 | <tr> | 192 | <tr> |
| 193 | <td class="tg-0lax">ACLNN_ERR_INNER_NULLPTR</td> | 193 | <td class="tg-0lax">ACLNN_ERR_INNER_NULLPTR</td> |
| @@ -201,7 +201,7 @@ aclnnStatus aclnnConfusionTranspose( | |||
| 201 | 201 | ||
| 202 | - **参数说明**: | 202 | - **参数说明**: |
| 203 | 203 | ||
| 204 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 204 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 205 | <col style="width: 184px"> | 205 | <col style="width: 184px"> |
| 206 | <col style="width: 134px"> | 206 | <col style="width: 134px"> |
| 207 | <col style="width: 832px"> | 207 | <col style="width: 832px"> |
| @@ -246,14 +246,14 @@ aclnnStatus aclnnConfusionTranspose( | |||
| 246 | 246 | ||
| 247 | 例如: | 247 | 例如: |
| 248 | 248 | ||
| 249 | - 设shape_before为reshape操作前的数据形状,shape_after为reshape操作后的数据形状, | 249 | + 设shape_before为reshape操作前的数据形状,shape_after为reshape操作后的数据形状, |
| 250 | 250 | ||
| 251 | - shape_before = [(ab),(cd),f,(gh)] | 251 | + shape_before = [(ab),(cd),f,(gh)] |
| 252 | - shape_after = [a,(bc),d,e,(fg),h] | 252 | + shape_after = [a,(bc),d,e,(fg),h] |
| 253 | 253 | ||
| 254 | - 而如下的shape_after是不被允许的: | 254 | + 而如下的shape_after是不被允许的: |
| 255 | 255 | ||
| 256 | - shape_after_illegal = [a,b,d,e,(fg),(ch)] | 256 | + shape_after_illegal = [a,b,d,e,(fg),(ch)] |
| 257 | 257 | ||
| 258 | ## 调用示例 | 258 | ## 调用示例 |
| 259 | 259 | ||
| @@ -292,7 +292,7 @@ void PrintOutResult(std::vector<int64_t> &shape, void** deviceAddr) { | |||
| 292 | *deviceAddr, size * sizeof(resultData[0]), ACL_MEMCPY_DEVICE_TO_HOST); | 292 | *deviceAddr, size * sizeof(resultData[0]), ACL_MEMCPY_DEVICE_TO_HOST); |
| 293 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); | 293 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); |
| 294 | for (int64_t i = 0; i < size; i++) { | 294 | for (int64_t i = 0; i < size; i++) { |
| 295 | - LOG_PRINT("mean result[%ld] is: %f\n", i, resultData[i]); | 295 | + LOG_PRINT("result[%ld] is: %f\n", i, resultData[i]); |
| 296 | } | 296 | } |
| 297 | } | 297 | } |
| 298 | 298 | ||
| @@ -372,7 +372,7 @@ int main() { | |||
| 372 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 372 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 373 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 373 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 374 | 374 | ||
| 375 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 375 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 376 | uint64_t workspaceSize = 16 * 1024 * 1024; | 376 | uint64_t workspaceSize = 16 * 1024 * 1024; |
| 377 | aclOpExecutor* executor; | 377 | aclOpExecutor* executor; |
| 378 | 378 | ||
| @@ -398,7 +398,7 @@ int main() { | |||
| 398 | // 5.获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 | 398 | // 5.获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 |
| 399 | PrintOutResult(outShape, &outDeviceAddr); | 399 | PrintOutResult(outShape, &outDeviceAddr); |
| 400 | 400 | ||
| 401 | - // 6.释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 401 | + // 6.释放aclTensor,需要根据具体API的接口定义修改 |
| 402 | aclDestroyTensor(x); | 402 | aclDestroyTensor(x); |
| 403 | aclDestroyTensor(out); | 403 | aclDestroyTensor(out); |
| 404 | 404 | ||
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 23 | <col style="width: 170px"> | 23 | <col style="width: 170px"> |
| 24 | <col style="width: 170px"> | 24 | <col style="width: 170px"> |
| 25 | <col style="width: 310px"> | 25 | <col style="width: 310px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -28,7 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | ## 参数说明 | 29 | ## 参数说明 |
| 30 | 30 | ||
| 31 | -<table style="undefined;table-layout: fixed; width: 1480px"> | 31 | +<table style="table-layout: fixed; width: 1480px"> |
| 32 | <colgroup> | 32 | <colgroup> |
| 33 | <col style="width: 177px"> | 33 | <col style="width: 177px"> |
| 34 | <col style="width: 120px"> | 34 | <col style="width: 120px"> |
| @@ -35,7 +35,7 @@ | |||
| 35 | 35 | ||
| 36 | ## 参数说明 | 36 | ## 参数说明 |
| 37 | 37 | ||
| 38 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 38 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 39 | <col style="width: 100px"> | 39 | <col style="width: 100px"> |
| 40 | <col style="width: 150px"> | 40 | <col style="width: 150px"> |
| 41 | <col style="width: 280px"> | 41 | <col style="width: 280px"> |
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 1043px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 1043px"><colgroup> |
| 23 | <col style="width: 139px"> | 23 | <col style="width: 139px"> |
| 24 | <col style="width: 146px"> | 24 | <col style="width: 146px"> |
| 25 | <col style="width: 342px"> | 25 | <col style="width: 342px"> |
| @@ -52,7 +52,7 @@ aclnnStatus aclnnDiagFlat( | |||
| 52 | 52 | ||
| 53 | - **参数说明:** | 53 | - **参数说明:** |
| 54 | 54 | ||
| 55 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 55 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 56 | <col style="width: 211px"> | 56 | <col style="width: 211px"> |
| 57 | <col style="width: 120px"> | 57 | <col style="width: 120px"> |
| 58 | <col style="width: 296px"> | 58 | <col style="width: 296px"> |
| @@ -131,7 +131,7 @@ aclnnStatus aclnnDiagFlat( | |||
| 131 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 131 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 132 | 132 | ||
| 133 | 第一段接口完成入参校验,出现以下场景时报错: | 133 | 第一段接口完成入参校验,出现以下场景时报错: |
| 134 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 134 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 135 | <col style="width: 291px"> | 135 | <col style="width: 291px"> |
| 136 | <col style="width: 135px"> | 136 | <col style="width: 135px"> |
| 137 | <col style="width: 724px"> | 137 | <col style="width: 724px"> |
| @@ -163,7 +163,7 @@ aclnnStatus aclnnDiagFlat( | |||
| 163 | 163 | ||
| 164 | - **参数说明:** | 164 | - **参数说明:** |
| 165 | 165 | ||
| 166 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 166 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 167 | <col style="width: 184px"> | 167 | <col style="width: 184px"> |
| 168 | <col style="width: 134px"> | 168 | <col style="width: 134px"> |
| 169 | <col style="width: 832px"> | 169 | <col style="width: 832px"> |
| @@ -299,7 +299,7 @@ int main() { | |||
| 299 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 299 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 300 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 300 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 301 | 301 | ||
| 302 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 302 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 303 | uint64_t workspaceSize = 0; | 303 | uint64_t workspaceSize = 0; |
| 304 | aclOpExecutor* executor; | 304 | aclOpExecutor* executor; |
| 305 | // 调用aclnnDiagFlat第一段接口 | 305 | // 调用aclnnDiagFlat第一段接口 |
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | ## 参数说明 | 26 | ## 参数说明 |
| 27 | 27 | ||
| 28 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 28 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 29 | <col style="width: 100px"> | 29 | <col style="width: 100px"> |
| 30 | <col style="width: 150px"> | 30 | <col style="width: 150px"> |
| 31 | <col style="width: 280px"> | 31 | <col style="width: 280px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnDiag( | |||
| 53 | 53 | ||
| 54 | - **参数说明:** | 54 | - **参数说明:** |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 57 | <col style="width: 211px"> | 57 | <col style="width: 211px"> |
| 58 | <col style="width: 120px"> | 58 | <col style="width: 120px"> |
| 59 | <col style="width: 266px"> | 59 | <col style="width: 266px"> |
| @@ -132,7 +132,7 @@ aclnnStatus aclnnDiag( | |||
| 132 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 132 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 133 | 133 | ||
| 134 | 第一段接口完成入参校验,出现以下场景时报错: | 134 | 第一段接口完成入参校验,出现以下场景时报错: |
| 135 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 135 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 136 | <col style="width: 291px"> | 136 | <col style="width: 291px"> |
| 137 | <col style="width: 135px"> | 137 | <col style="width: 135px"> |
| 138 | <col style="width: 724px"> | 138 | <col style="width: 724px"> |
| @@ -167,7 +167,7 @@ aclnnStatus aclnnDiag( | |||
| 167 | 167 | ||
| 168 | - **参数说明:** | 168 | - **参数说明:** |
| 169 | 169 | ||
| 170 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 170 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 171 | <col style="width: 184px"> | 171 | <col style="width: 184px"> |
| 172 | <col style="width: 134px"> | 172 | <col style="width: 134px"> |
| 173 | <col style="width: 832px"> | 173 | <col style="width: 832px"> |
| @@ -303,7 +303,7 @@ int main() { | |||
| 303 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 303 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 304 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 304 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 305 | 305 | ||
| 306 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 306 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 307 | uint64_t workspaceSize = 0; | 307 | uint64_t workspaceSize = 0; |
| 308 | aclOpExecutor* executor; | 308 | aclOpExecutor* executor; |
| 309 | // 调用aclnnDiag第一段接口 | 309 | // 调用aclnnDiag第一段接口 |
| @@ -35,7 +35,7 @@ array([[0, 1, 2, 3], | |||
| 35 | 35 | ||
| 36 | ## 参数说明 | 36 | ## 参数说明 |
| 37 | 37 | ||
| 38 | - <table style="undefined;table-layout: fixed; width: 1528px"><colgroup> | 38 | + <table style="table-layout: fixed; width: 1528px"><colgroup> |
| 39 | <col style="width: 132px"> | 39 | <col style="width: 132px"> |
| 40 | <col style="width: 120px"> | 40 | <col style="width: 120px"> |
| 41 | <col style="width: 256px"> | 41 | <col style="width: 256px"> |
| @@ -21,7 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | ### InplaceFillScalar | 22 | ### InplaceFillScalar |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 922px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 922px"><colgroup> |
| 25 | <col style="width: 144px"> | 25 | <col style="width: 144px"> |
| 26 | <col style="width: 166px"> | 26 | <col style="width: 166px"> |
| 27 | <col style="width: 202px"> | 27 | <col style="width: 202px"> |
| @@ -56,7 +56,7 @@ | |||
| 56 | 56 | ||
| 57 | ### InplaceFillTensor | 57 | ### InplaceFillTensor |
| 58 | 58 | ||
| 59 | -<table style="undefined;table-layout: fixed; width: 922px"><colgroup> | 59 | +<table style="table-layout: fixed; width: 922px"><colgroup> |
| 60 | <col style="width: 144px"> | 60 | <col style="width: 144px"> |
| 61 | <col style="width: 166px"> | 61 | <col style="width: 166px"> |
| 62 | <col style="width: 202px"> | 62 | <col style="width: 202px"> |
| @@ -51,7 +51,7 @@ aclnnStatus aclnnInplaceFillScalar( | |||
| 51 | 51 | ||
| 52 | - **参数说明** | 52 | - **参数说明** |
| 53 | 53 | ||
| 54 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 54 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 55 | <col style="width: 211px"> | 55 | <col style="width: 211px"> |
| 56 | <col style="width: 120px"> | 56 | <col style="width: 120px"> |
| 57 | <col style="width: 266px"> | 57 | <col style="width: 266px"> |
| @@ -126,7 +126,7 @@ aclnnStatus aclnnInplaceFillScalar( | |||
| 126 | 126 | ||
| 127 | 第一段接口完成入参校验,出现以下场景时报错: | 127 | 第一段接口完成入参校验,出现以下场景时报错: |
| 128 | 128 | ||
| 129 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 129 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 130 | <col style="width: 291px"> | 130 | <col style="width: 291px"> |
| 131 | <col style="width: 135px"> | 131 | <col style="width: 135px"> |
| 132 | <col style="width: 724px"> | 132 | <col style="width: 724px"> |
| @@ -158,7 +158,7 @@ aclnnStatus aclnnInplaceFillScalar( | |||
| 158 | 158 | ||
| 159 | - **参数说明** | 159 | - **参数说明** |
| 160 | 160 | ||
| 161 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 161 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 162 | <col style="width: 184px"> | 162 | <col style="width: 184px"> |
| 163 | <col style="width: 134px"> | 163 | <col style="width: 134px"> |
| 164 | <col style="width: 832px"> | 164 | <col style="width: 832px"> |
| @@ -287,7 +287,7 @@ int main() { | |||
| 287 | pScalar = aclCreateScalar(&pValue, aclDataType::ACL_FLOAT); | 287 | pScalar = aclCreateScalar(&pValue, aclDataType::ACL_FLOAT); |
| 288 | CHECK_RET(pScalar != nullptr, return ret); | 288 | CHECK_RET(pScalar != nullptr, return ret); |
| 289 | 289 | ||
| 290 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 290 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 291 | uint64_t workspaceSize = 0; | 291 | uint64_t workspaceSize = 0; |
| 292 | aclOpExecutor* executor; | 292 | aclOpExecutor* executor; |
| 293 | // 调用aclnnInplaceFillScalar第一段接口 | 293 | // 调用aclnnInplaceFillScalar第一段接口 |
| @@ -51,7 +51,7 @@ aclnnStatus aclnnInplaceFillTensor( | |||
| 51 | 51 | ||
| 52 | - **参数说明** | 52 | - **参数说明** |
| 53 | 53 | ||
| 54 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 54 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 55 | <col style="width: 211px"> | 55 | <col style="width: 211px"> |
| 56 | <col style="width: 120px"> | 56 | <col style="width: 120px"> |
| 57 | <col style="width: 266px"> | 57 | <col style="width: 266px"> |
| @@ -125,7 +125,7 @@ aclnnStatus aclnnInplaceFillTensor( | |||
| 125 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 125 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 126 | 126 | ||
| 127 | 第一段接口完成入参校验,出现以下场景时报错: | 127 | 第一段接口完成入参校验,出现以下场景时报错: |
| 128 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 128 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 129 | <col style="width: 291px"> | 129 | <col style="width: 291px"> |
| 130 | <col style="width: 135px"> | 130 | <col style="width: 135px"> |
| 131 | <col style="width: 724px"> | 131 | <col style="width: 724px"> |
| @@ -166,7 +166,7 @@ aclnnStatus aclnnInplaceFillTensor( | |||
| 166 | 166 | ||
| 167 | - **参数说明** | 167 | - **参数说明** |
| 168 | 168 | ||
| 169 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 169 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 170 | <col style="width: 184px"> | 170 | <col style="width: 184px"> |
| 171 | <col style="width: 134px"> | 171 | <col style="width: 134px"> |
| 172 | <col style="width: 832px"> | 172 | <col style="width: 832px"> |
| @@ -298,7 +298,7 @@ int main() { | |||
| 298 | ret = CreateAclTensor(valueHostData, valueShape, &valueDeviceAddr, aclDataType::ACL_FLOAT, &value); | 298 | ret = CreateAclTensor(valueHostData, valueShape, &valueDeviceAddr, aclDataType::ACL_FLOAT, &value); |
| 299 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 299 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 300 | 300 | ||
| 301 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 301 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 302 | uint64_t workspaceSize = 0; | 302 | uint64_t workspaceSize = 0; |
| 303 | aclOpExecutor* executor; | 303 | aclOpExecutor* executor; |
| 304 | // 调用aclnnInplaceFillTensor第一段接口 | 304 | // 调用aclnnInplaceFillTensor第一段接口 |
| @@ -22,7 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | ## 参数说明 | 23 | ## 参数说明 |
| 24 | 24 | ||
| 25 | -<table style="undefined;table-layout: fixed; width: 1043px"><colgroup> | 25 | +<table style="table-layout: fixed; width: 1043px"><colgroup> |
| 26 | <col style="width: 139px"> | 26 | <col style="width: 139px"> |
| 27 | <col style="width: 146px"> | 27 | <col style="width: 146px"> |
| 28 | <col style="width: 342px"> | 28 | <col style="width: 342px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnInplaceFillDiagonal( | |||
| 53 | 53 | ||
| 54 | - **参数说明** | 54 | - **参数说明** |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 57 | <col style="width: 211px"> | 57 | <col style="width: 211px"> |
| 58 | <col style="width: 120px"> | 58 | <col style="width: 120px"> |
| 59 | <col style="width: 266px"> | 59 | <col style="width: 266px"> |
| @@ -132,7 +132,7 @@ aclnnStatus aclnnInplaceFillDiagonal( | |||
| 132 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 132 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 133 | 133 | ||
| 134 | 第一段接口完成入参校验,出现以下场景时报错: | 134 | 第一段接口完成入参校验,出现以下场景时报错: |
| 135 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 135 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 136 | <col style="width: 291px"> | 136 | <col style="width: 291px"> |
| 137 | <col style="width: 135px"> | 137 | <col style="width: 135px"> |
| 138 | <col style="width: 724px"> | 138 | <col style="width: 724px"> |
| @@ -173,7 +173,7 @@ aclnnStatus aclnnInplaceFillDiagonal( | |||
| 173 | 173 | ||
| 174 | - **参数说明** | 174 | - **参数说明** |
| 175 | 175 | ||
| 176 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 176 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 177 | <col style="width: 184px"> | 177 | <col style="width: 184px"> |
| 178 | <col style="width: 134px"> | 178 | <col style="width: 134px"> |
| 179 | <col style="width: 832px"> | 179 | <col style="width: 832px"> |
| @@ -21,7 +21,7 @@ $$out_i=value$$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -20,7 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | ## 参数说明 | 21 | ## 参数说明 |
| 22 | 22 | ||
| 23 | -<table style="undefined;table-layout: fixed; width: 949px"><colgroup> | 23 | +<table style="table-layout: fixed; width: 949px"><colgroup> |
| 24 | <col style="width: 144px"> | 24 | <col style="width: 144px"> |
| 25 | <col style="width: 166px"> | 25 | <col style="width: 166px"> |
| 26 | <col style="width: 202px"> | 26 | <col style="width: 202px"> |
| @@ -55,7 +55,7 @@ aclnnStatus aclnnFlatten( | |||
| 55 | 55 | ||
| 56 | - **参数说明:** | 56 | - **参数说明:** |
| 57 | 57 | ||
| 58 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 58 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 59 | <col style="width: 211px"> | 59 | <col style="width: 211px"> |
| 60 | <col style="width: 120px"> | 60 | <col style="width: 120px"> |
| 61 | <col style="width: 266px"> | 61 | <col style="width: 266px"> |
| @@ -134,7 +134,7 @@ aclnnStatus aclnnFlatten( | |||
| 134 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 134 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 135 | 135 | ||
| 136 | 第一段接口完成入参校验,出现以下场景时报错: | 136 | 第一段接口完成入参校验,出现以下场景时报错: |
| 137 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 137 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 138 | <col style="width: 291px"> | 138 | <col style="width: 291px"> |
| 139 | <col style="width: 135px"> | 139 | <col style="width: 135px"> |
| 140 | <col style="width: 724px"> | 140 | <col style="width: 724px"> |
| @@ -172,7 +172,7 @@ aclnnStatus aclnnFlatten( | |||
| 172 | 172 | ||
| 173 | - **参数说明** | 173 | - **参数说明** |
| 174 | 174 | ||
| 175 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 175 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 176 | <col style="width: 184px"> | 176 | <col style="width: 184px"> |
| 177 | <col style="width: 134px"> | 177 | <col style="width: 134px"> |
| 178 | <col style="width: 832px"> | 178 | <col style="width: 832px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 996px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 996px"><colgroup> |
| 21 | <col style="width: 102px"> | 21 | <col style="width: 102px"> |
| 22 | <col style="width: 168px"> | 22 | <col style="width: 168px"> |
| 23 | <col style="width: 203px"> | 23 | <col style="width: 203px"> |
| @@ -40,7 +40,7 @@ | |||
| 40 | <td>FLOAT, FLOAT16, INT8, INT16, UINT16, UINT8, | 40 | <td>FLOAT, FLOAT16, INT8, INT16, UINT16, UINT8, |
| 41 | INT32, INT64, UINT32, UINT64, BOOL, DOUBLE, STRING, BFLOAT16</td> | 41 | INT32, INT64, UINT32, UINT64, BOOL, DOUBLE, STRING, BFLOAT16</td> |
| 42 | <td>ND</td> | 42 | <td>ND</td> |
| 43 | - </tr> | 43 | + </tr> |
| 44 | <tr> | 44 | <tr> |
| 45 | <td>y</td> | 45 | <td>y</td> |
| 46 | <td>输出</td> | 46 | <td>输出</td> |
| @@ -19,7 +19,7 @@ $L = \prod_{d} \lfloor \frac{spatial\_size[d] + 2 \times padding[d] - dilation[d | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 966px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 966px"><colgroup> |
| 23 | <col style="width: 144px"> | 23 | <col style="width: 144px"> |
| 24 | <col style="width: 166px"> | 24 | <col style="width: 166px"> |
| 25 | <col style="width: 290px"> | 25 | <col style="width: 290px"> |
| @@ -61,7 +61,7 @@ aclnnStatus aclnnIm2col( | |||
| 61 | ## aclnnIm2colGetWorkspaceSize | 61 | ## aclnnIm2colGetWorkspaceSize |
| 62 | 62 | ||
| 63 | - **参数说明**: | 63 | - **参数说明**: |
| 64 | - <table style="undefined;table-layout: fixed; width: 1580px"><colgroup> | 64 | + <table style="table-layout: fixed; width: 1580px"><colgroup> |
| 65 | <col style="width: 211px"> | 65 | <col style="width: 211px"> |
| 66 | <col style="width: 120px"> | 66 | <col style="width: 120px"> |
| 67 | <col style="width: 266px"> | 67 | <col style="width: 266px"> |
| @@ -176,7 +176,7 @@ aclnnStatus aclnnIm2col( | |||
| 176 | 176 | ||
| 177 | 第一段接口完成入参校验,出现以下场景时报错: | 177 | 第一段接口完成入参校验,出现以下场景时报错: |
| 178 | 178 | ||
| 179 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 179 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 180 | <col style="width: 291px"> | 180 | <col style="width: 291px"> |
| 181 | <col style="width: 135px"> | 181 | <col style="width: 135px"> |
| 182 | <col style="width: 724px"> | 182 | <col style="width: 724px"> |
| @@ -219,7 +219,7 @@ aclnnStatus aclnnIm2col( | |||
| 219 | ## aclnnIm2col | 219 | ## aclnnIm2col |
| 220 | 220 | ||
| 221 | - **参数说明**: | 221 | - **参数说明**: |
| 222 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 222 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 223 | <col style="width: 184px"> | 223 | <col style="width: 184px"> |
| 224 | <col style="width: 134px"> | 224 | <col style="width: 134px"> |
| 225 | <col style="width: 832px"> | 225 | <col style="width: 832px"> |
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 23 | <col style="width: 170px"> | 23 | <col style="width: 170px"> |
| 24 | <col style="width: 170px"> | 24 | <col style="width: 170px"> |
| 25 | <col style="width: 310px"> | 25 | <col style="width: 310px"> |
| @@ -41,7 +41,7 @@ | |||
| 41 | <td>输入张量。</td> | 41 | <td>输入张量。</td> |
| 42 | <td>INT32, INT64</td> | 42 | <td>INT32, INT64</td> |
| 43 | <td>1D</td> | 43 | <td>1D</td> |
| 44 | - </tr> | 44 | + </tr> |
| 45 | <tr> | 45 | <tr> |
| 46 | <td>y</td> | 46 | <td>y</td> |
| 47 | <td>输出</td> | 47 | <td>输出</td> |
| @@ -16,9 +16,9 @@ | |||
| 16 | - 算子功能:将输入Tensor`x`中mask位置为`True`的元素填充指定的值。`mask`必须与`x`的shape相同或可广播。 | 16 | - 算子功能:将输入Tensor`x`中mask位置为`True`的元素填充指定的值。`mask`必须与`x`的shape相同或可广播。 |
| 17 | 17 | ||
| 18 | - 计算公式: | 18 | - 计算公式: |
| 19 | - | 19 | + |
| 20 | $$ | 20 | $$ |
| 21 | - y_i = | 21 | + y_i = |
| 22 | \begin{cases} | 22 | \begin{cases} |
| 23 | x_i, \, \, mask_i=False\\ | 23 | x_i, \, \, mask_i=False\\ |
| 24 | value_i, \, \, mask_i=True\\ | 24 | value_i, \, \, mask_i=True\\ |
| @@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | ## 参数说明 | 28 | ## 参数说明 |
| 29 | 29 | ||
| 30 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 30 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 31 | <col style="width: 140px"> | 31 | <col style="width: 140px"> |
| 32 | <col style="width: 140px"> | 32 | <col style="width: 140px"> |
| 33 | <col style="width: 180px"> | 33 | <col style="width: 180px"> |
| @@ -60,7 +60,7 @@ aclnnStatus aclnnInplaceMaskedFillScalar( | |||
| 60 | 60 | ||
| 61 | - **参数说明** | 61 | - **参数说明** |
| 62 | 62 | ||
| 63 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 63 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 64 | <col style="width: 211px"> | 64 | <col style="width: 211px"> |
| 65 | <col style="width: 120px"> | 65 | <col style="width: 120px"> |
| 66 | <col style="width: 266px"> | 66 | <col style="width: 266px"> |
| @@ -143,7 +143,7 @@ aclnnStatus aclnnInplaceMaskedFillScalar( | |||
| 143 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 143 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 144 | 144 | ||
| 145 | 第一段接口完成入参校验,出现以下场景时报错: | 145 | 第一段接口完成入参校验,出现以下场景时报错: |
| 146 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 146 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 147 | <col style="width: 291px"> | 147 | <col style="width: 291px"> |
| 148 | <col style="width: 135px"> | 148 | <col style="width: 135px"> |
| 149 | <col style="width: 724px"> | 149 | <col style="width: 724px"> |
| @@ -177,7 +177,7 @@ aclnnStatus aclnnInplaceMaskedFillScalar( | |||
| 177 | ## aclnnInplaceMaskedFillScalar | 177 | ## aclnnInplaceMaskedFillScalar |
| 178 | 178 | ||
| 179 | - **参数说明** | 179 | - **参数说明** |
| 180 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 180 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 181 | <col style="width: 184px"> | 181 | <col style="width: 184px"> |
| 182 | <col style="width: 134px"> | 182 | <col style="width: 134px"> |
| 183 | <col style="width: 832px"> | 183 | <col style="width: 832px"> |
| @@ -314,7 +314,7 @@ int main() { | |||
| 314 | value = aclCreateScalar(&valueVal, aclDataType::ACL_FLOAT); | 314 | value = aclCreateScalar(&valueVal, aclDataType::ACL_FLOAT); |
| 315 | CHECK_RET(value != nullptr, return ret); | 315 | CHECK_RET(value != nullptr, return ret); |
| 316 | 316 | ||
| 317 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 317 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 318 | uint64_t workspaceSize = 0; | 318 | uint64_t workspaceSize = 0; |
| 319 | aclOpExecutor* executor; | 319 | aclOpExecutor* executor; |
| 320 | // 调用aclnnInplaceMaskedFillScalar第一段接口 | 320 | // 调用aclnnInplaceMaskedFillScalar第一段接口 |
| @@ -52,7 +52,7 @@ aclnnStatus aclnnInplaceMaskedFillTensor( | |||
| 52 | 52 | ||
| 53 | - **参数说明** | 53 | - **参数说明** |
| 54 | 54 | ||
| 55 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 55 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 56 | <col style="width: 211px"> | 56 | <col style="width: 211px"> |
| 57 | <col style="width: 120px"> | 57 | <col style="width: 120px"> |
| 58 | <col style="width: 266px"> | 58 | <col style="width: 266px"> |
| @@ -135,7 +135,7 @@ aclnnStatus aclnnInplaceMaskedFillTensor( | |||
| 135 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 135 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 136 | 136 | ||
| 137 | 第一段接口完成入参校验,出现以下场景时报错: | 137 | 第一段接口完成入参校验,出现以下场景时报错: |
| 138 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 138 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 139 | <col style="width: 291px"> | 139 | <col style="width: 291px"> |
| 140 | <col style="width: 135px"> | 140 | <col style="width: 135px"> |
| 141 | <col style="width: 724px"> | 141 | <col style="width: 724px"> |
| @@ -170,7 +170,7 @@ aclnnStatus aclnnInplaceMaskedFillTensor( | |||
| 170 | 170 | ||
| 171 | - **参数说明** | 171 | - **参数说明** |
| 172 | 172 | ||
| 173 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 173 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 174 | <col style="width: 184px"> | 174 | <col style="width: 184px"> |
| 175 | <col style="width: 134px"> | 175 | <col style="width: 134px"> |
| 176 | <col style="width: 832px"> | 176 | <col style="width: 832px"> |
| @@ -310,7 +310,7 @@ int main() { | |||
| 310 | ret = CreateAclTensor(valueHostData, valueShape, &valueDeviceAddr, aclDataType::ACL_FLOAT, &value); | 310 | ret = CreateAclTensor(valueHostData, valueShape, &valueDeviceAddr, aclDataType::ACL_FLOAT, &value); |
| 311 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 311 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 312 | 312 | ||
| 313 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 313 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 314 | uint64_t workspaceSize = 0; | 314 | uint64_t workspaceSize = 0; |
| 315 | aclOpExecutor* executor; | 315 | aclOpExecutor* executor; |
| 316 | // 调用aclnnInplaceMaskedFillTensor第一段接口 | 316 | // 调用aclnnInplaceMaskedFillTensor第一段接口 |
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 1043px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 1043px"><colgroup> |
| 23 | <col style="width: 139px"> | 23 | <col style="width: 139px"> |
| 24 | <col style="width: 146px"> | 24 | <col style="width: 146px"> |
| 25 | <col style="width: 342px"> | 25 | <col style="width: 342px"> |
| @@ -149,7 +149,7 @@ aclnnStatus aclnnMaskedSelect( | |||
| 149 | 149 | ||
| 150 | 第一段接口完成入参校验,出现以下场景时报错: | 150 | 第一段接口完成入参校验,出现以下场景时报错: |
| 151 | 151 | ||
| 152 | - <table style="undefined;table-layout: fixed; width: 1147px"><colgroup> | 152 | + <table style="table-layout: fixed; width: 1147px"><colgroup> |
| 153 | <col style="width: 287px"> | 153 | <col style="width: 287px"> |
| 154 | <col style="width: 124px"> | 154 | <col style="width: 124px"> |
| 155 | <col style="width: 736px"> | 155 | <col style="width: 736px"> |
| @@ -187,7 +187,7 @@ aclnnStatus aclnnMaskedSelect( | |||
| 187 | 187 | ||
| 188 | - **参数说明:** | 188 | - **参数说明:** |
| 189 | 189 | ||
| 190 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 190 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 191 | <col style="width: 167px"> | 191 | <col style="width: 167px"> |
| 192 | <col style="width: 134px"> | 192 | <col style="width: 134px"> |
| 193 | <col style="width: 848px"> | 193 | <col style="width: 848px"> |
| @@ -339,7 +339,7 @@ int main() { | |||
| 339 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 339 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 340 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 340 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 341 | 341 | ||
| 342 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 342 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 343 | uint64_t workspaceSize = 0; | 343 | uint64_t workspaceSize = 0; |
| 344 | aclOpExecutor* executor; | 344 | aclOpExecutor* executor; |
| 345 | // 调用aclnnMaskedSelect第一段接口 | 345 | // 调用aclnnMaskedSelect第一段接口 |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 21 | <col style="width: 100px"> | 21 | <col style="width: 100px"> |
| 22 | <col style="width: 150px"> | 22 | <col style="width: 150px"> |
| 23 | <col style="width: 280px"> | 23 | <col style="width: 280px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 21 | <col style="width: 100px"> | 21 | <col style="width: 100px"> |
| 22 | <col style="width: 150px"> | 22 | <col style="width: 150px"> |
| 23 | <col style="width: 280px"> | 23 | <col style="width: 280px"> |
| @@ -44,7 +44,7 @@ | |||
| 44 | 44 | ||
| 45 | ## 参数说明 | 45 | ## 参数说明 |
| 46 | 46 | ||
| 47 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 47 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 48 | <col style="width: 100px"> | 48 | <col style="width: 100px"> |
| 49 | <col style="width: 150px"> | 49 | <col style="width: 150px"> |
| 50 | <col style="width: 280px"> | 50 | <col style="width: 280px"> |
| @@ -34,7 +34,7 @@ $$ | |||
| 34 | 34 | ||
| 35 | ## 参数说明 | 35 | ## 参数说明 |
| 36 | 36 | ||
| 37 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 37 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 38 | <col style="width: 100px"> | 38 | <col style="width: 100px"> |
| 39 | <col style="width: 150px"> | 39 | <col style="width: 150px"> |
| 40 | <col style="width: 280px"> | 40 | <col style="width: 280px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 21 | <col style="width: 100px"> | 21 | <col style="width: 100px"> |
| 22 | <col style="width: 150px"> | 22 | <col style="width: 150px"> |
| 23 | <col style="width: 280px"> | 23 | <col style="width: 280px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 21 | <col style="width: 100px"> | 21 | <col style="width: 100px"> |
| 22 | <col style="width: 150px"> | 22 | <col style="width: 150px"> |
| 23 | <col style="width: 280px"> | 23 | <col style="width: 280px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 21 | <col style="width: 100px"> | 21 | <col style="width: 100px"> |
| 22 | <col style="width: 150px"> | 22 | <col style="width: 150px"> |
| 23 | <col style="width: 280px"> | 23 | <col style="width: 280px"> |
| @@ -29,7 +29,7 @@ | |||
| 29 | 29 | ||
| 30 | ## 参数说明 | 30 | ## 参数说明 |
| 31 | 31 | ||
| 32 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 32 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 33 | <col style="width: 100px"> | 33 | <col style="width: 100px"> |
| 34 | <col style="width: 150px"> | 34 | <col style="width: 150px"> |
| 35 | <col style="width: 280px"> | 35 | <col style="width: 280px"> |
| @@ -75,10 +75,10 @@ | |||
| 75 | </tr> | 75 | </tr> |
| 76 | </tbody></table> | 76 | </tbody></table> |
| 77 | 77 | ||
| 78 | -- paddings | 78 | +- paddings |
| 79 | paddings的第0维表示对输入x第0维的扩充配置,以此类推。每一行表示对应维度上的填充数量(左/右、前/后、上/下等)。对于每一行[a, b],a表示在该维度的开头填充的元素数,b表示在该维度的末尾填充的元素数。 | 79 | paddings的第0维表示对输入x第0维的扩充配置,以此类推。每一行表示对应维度上的填充数量(左/右、前/后、上/下等)。对于每一行[a, b],a表示在该维度的开头填充的元素数,b表示在该维度的末尾填充的元素数。 |
| 80 | 80 | ||
| 81 | -- mode | 81 | +- mode |
| 82 | REFLECT模式下,镜像时不会包括边界本身。 | 82 | REFLECT模式下,镜像时不会包括边界本身。 |
| 83 | SYMMETRIC模式下,镜像时会包含边界本身,示例中可见。 | 83 | SYMMETRIC模式下,镜像时会包含边界本身,示例中可见。 |
| 84 | 84 | ||
| @@ -59,7 +59,7 @@ aclnnStatus aclnnReflectionPad1d( | |||
| 59 | 59 | ||
| 60 | - **参数说明** | 60 | - **参数说明** |
| 61 | 61 | ||
| 62 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 62 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 63 | <col style="width: 211px"> | 63 | <col style="width: 211px"> |
| 64 | <col style="width: 120px"> | 64 | <col style="width: 120px"> |
| 65 | <col style="width: 266px"> | 65 | <col style="width: 266px"> |
| @@ -146,7 +146,7 @@ aclnnStatus aclnnReflectionPad1d( | |||
| 146 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 146 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 147 | 147 | ||
| 148 | 第一段接口完成入参校验,出现以下场景时报错: | 148 | 第一段接口完成入参校验,出现以下场景时报错: |
| 149 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 149 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 150 | <col style="width: 291px"> | 150 | <col style="width: 291px"> |
| 151 | <col style="width: 135px"> | 151 | <col style="width: 135px"> |
| 152 | <col style="width: 724px"> | 152 | <col style="width: 724px"> |
| @@ -193,7 +193,7 @@ aclnnStatus aclnnReflectionPad1d( | |||
| 193 | 193 | ||
| 194 | - **参数说明** | 194 | - **参数说明** |
| 195 | 195 | ||
| 196 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 196 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 197 | <col style="width: 184px"> | 197 | <col style="width: 184px"> |
| 198 | <col style="width: 134px"> | 198 | <col style="width: 134px"> |
| 199 | <col style="width: 832px"> | 199 | <col style="width: 832px"> |
| @@ -67,7 +67,7 @@ aclnnStatus aclnnReflectionPad2d( | |||
| 67 | 67 | ||
| 68 | - **参数说明** | 68 | - **参数说明** |
| 69 | 69 | ||
| 70 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 70 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 71 | <col style="width: 211px"> | 71 | <col style="width: 211px"> |
| 72 | <col style="width: 120px"> | 72 | <col style="width: 120px"> |
| 73 | <col style="width: 266px"> | 73 | <col style="width: 266px"> |
| @@ -155,7 +155,7 @@ aclnnStatus aclnnReflectionPad2d( | |||
| 155 | 155 | ||
| 156 | 第一段接口完成入参校验,出现以下场景时报错: | 156 | 第一段接口完成入参校验,出现以下场景时报错: |
| 157 | 157 | ||
| 158 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 158 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 159 | <col style="width: 291px"> | 159 | <col style="width: 291px"> |
| 160 | <col style="width: 135px"> | 160 | <col style="width: 135px"> |
| 161 | <col style="width: 724px"> | 161 | <col style="width: 724px"> |
| @@ -202,7 +202,7 @@ aclnnStatus aclnnReflectionPad2d( | |||
| 202 | 202 | ||
| 203 | - **参数说明** | 203 | - **参数说明** |
| 204 | 204 | ||
| 205 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 205 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 206 | <col style="width: 184px"> | 206 | <col style="width: 184px"> |
| 207 | <col style="width: 134px"> | 207 | <col style="width: 134px"> |
| 208 | <col style="width: 832px"> | 208 | <col style="width: 832px"> |
| @@ -79,7 +79,7 @@ aclnnStatus aclnnReflectionPad3d( | |||
| 79 | 79 | ||
| 80 | - **参数说明** | 80 | - **参数说明** |
| 81 | 81 | ||
| 82 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 82 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 83 | <col style="width: 211px"> | 83 | <col style="width: 211px"> |
| 84 | <col style="width: 120px"> | 84 | <col style="width: 120px"> |
| 85 | <col style="width: 266px"> | 85 | <col style="width: 266px"> |
| @@ -166,7 +166,7 @@ aclnnStatus aclnnReflectionPad3d( | |||
| 166 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 166 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 167 | 167 | ||
| 168 | 第一段接口完成入参校验,出现以下场景时报错: | 168 | 第一段接口完成入参校验,出现以下场景时报错: |
| 169 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 169 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 170 | <col style="width: 291px"> | 170 | <col style="width: 291px"> |
| 171 | <col style="width: 135px"> | 171 | <col style="width: 135px"> |
| 172 | <col style="width: 724px"> | 172 | <col style="width: 724px"> |
| @@ -213,7 +213,7 @@ aclnnStatus aclnnReflectionPad3d( | |||
| 213 | 213 | ||
| 214 | - **参数说明** | 214 | - **参数说明** |
| 215 | 215 | ||
| 216 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 216 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 217 | <col style="width: 184px"> | 217 | <col style="width: 184px"> |
| 218 | <col style="width: 134px"> | 218 | <col style="width: 134px"> |
| 219 | <col style="width: 832px"> | 219 | <col style="width: 832px"> |
| @@ -77,7 +77,7 @@ aclnnStatus aclnnNpuFormatCast( | |||
| 77 | 77 | ||
| 78 | - **参数说明** | 78 | - **参数说明** |
| 79 | 79 | ||
| 80 | - <table style="undefined;table-layout: fixed; width: 1665px;"> | 80 | + <table style="table-layout: fixed; width: 1665px;"> |
| 81 | <colgroup> | 81 | <colgroup> |
| 82 | <col style="width: 180px"> | 82 | <col style="width: 180px"> |
| 83 | <col style="width: 120px"> | 83 | <col style="width: 120px"> |
| @@ -223,7 +223,7 @@ aclnnStatus aclnnNpuFormatCast( | |||
| 223 | 223 | ||
| 224 | - **参数说明** | 224 | - **参数说明** |
| 225 | 225 | ||
| 226 | - <table style="undefined;table-layout: fixed; width: 1665px;"> | 226 | + <table style="table-layout: fixed; width: 1665px;"> |
| 227 | <colgroup> | 227 | <colgroup> |
| 228 | <col style="width: 180px"> | 228 | <col style="width: 180px"> |
| 229 | <col style="width: 120px"> | 229 | <col style="width: 120px"> |
| @@ -350,7 +350,7 @@ aclnnStatus aclnnNpuFormatCast( | |||
| 350 | 350 | ||
| 351 | - **参数说明** | 351 | - **参数说明** |
| 352 | 352 | ||
| 353 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 353 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 354 | <col style="width: 184px"> | 354 | <col style="width: 184px"> |
| 355 | <col style="width: 134px"> | 355 | <col style="width: 134px"> |
| 356 | <col style="width: 832px"> | 356 | <col style="width: 832px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnStack( | |||
| 53 | 53 | ||
| 54 | - **参数说明** | 54 | - **参数说明** |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 57 | <col style="width: 211px"> | 57 | <col style="width: 211px"> |
| 58 | <col style="width: 120px"> | 58 | <col style="width: 120px"> |
| 59 | <col style="width: 266px"> | 59 | <col style="width: 266px"> |
| @@ -136,7 +136,7 @@ aclnnStatus aclnnStack( | |||
| 136 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 136 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 137 | 137 | ||
| 138 | 第一段接口完成入参校验,出现以下场景时报错: | 138 | 第一段接口完成入参校验,出现以下场景时报错: |
| 139 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 139 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 140 | <col style="width: 291px"> | 140 | <col style="width: 291px"> |
| 141 | <col style="width: 135px"> | 141 | <col style="width: 135px"> |
| 142 | <col style="width: 724px"> | 142 | <col style="width: 724px"> |
| @@ -174,7 +174,7 @@ aclnnStatus aclnnStack( | |||
| 174 | 174 | ||
| 175 | - **参数说明** | 175 | - **参数说明** |
| 176 | 176 | ||
| 177 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 177 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 178 | <col style="width: 184px"> | 178 | <col style="width: 184px"> |
| 179 | <col style="width: 134px"> | 179 | <col style="width: 134px"> |
| 180 | <col style="width: 832px"> | 180 | <col style="width: 832px"> |
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | ## 参数说明 | 27 | ## 参数说明 |
| 28 | 28 | ||
| 29 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 29 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 30 | <col style="width: 100px"> | 30 | <col style="width: 100px"> |
| 31 | <col style="width: 150px"> | 31 | <col style="width: 150px"> |
| 32 | <col style="width: 280px"> | 32 | <col style="width: 280px"> |
| @@ -35,7 +35,7 @@ | |||
| 35 | 35 | ||
| 36 | ## 参数说明 | 36 | ## 参数说明 |
| 37 | 37 | ||
| 38 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 38 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 39 | <col style="width: 100px"> | 39 | <col style="width: 100px"> |
| 40 | <col style="width: 150px"> | 40 | <col style="width: 150px"> |
| 41 | <col style="width: 280px"> | 41 | <col style="width: 280px"> |
| @@ -103,7 +103,7 @@ | |||
| 103 | ## aclnnConstantPadNdGetWorkspaceSize | 103 | ## aclnnConstantPadNdGetWorkspaceSize |
| 104 | 104 | ||
| 105 | - **参数说明** | 105 | - **参数说明** |
| 106 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 106 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 107 | <col style="width: 211px"> | 107 | <col style="width: 211px"> |
| 108 | <col style="width: 120px"> | 108 | <col style="width: 120px"> |
| 109 | <col style="width: 266px"> | 109 | <col style="width: 266px"> |
| @@ -130,7 +130,7 @@ | |||
| 130 | <td>输入</td> | 130 | <td>输入</td> |
| 131 | <td>待填充的原输入数据</td> | 131 | <td>待填充的原输入数据</td> |
| 132 | <td>-</td> | 132 | <td>-</td> |
| 133 | - <td>FLOAT、FLOAT16、INT32、INT64、INT16、INT8、UINT8、UINT16、UINT32、UINT64、BOOL、DOUBLE、COMPLEX64、COMPLEX128 、BFLOAT16、HIFLOAT8、FLOAT8_E5M2、FLOAT8_E4M3FN、FLOAT8_E8M0、FLOAT4_E2M1、FLOAT4_E1M2。</td> | 133 | + <td>FLOAT、FLOAT16、INT32、INT64、INT16、INT8、UINT8、UINT16、UINT32、UINT64、BOOL、DOUBLE、COMPLEX64、COMPLEX128、BFLOAT16、HIFLOAT8、FLOAT8_E5M2、FLOAT8_E4M3FN、FLOAT8_E8M0、FLOAT4_E2M1、FLOAT4_E1M2。</td> |
| 134 | <td>ND</td> | 134 | <td>ND</td> |
| 135 | <td>0-8</td> | 135 | <td>0-8</td> |
| 136 | <td>√</td> | 136 | <td>√</td> |
| @@ -150,7 +150,7 @@ | |||
| 150 | <td>输入</td> | 150 | <td>输入</td> |
| 151 | <td>填充部分的填充值</td> | 151 | <td>填充部分的填充值</td> |
| 152 | <td>-</td> | 152 | <td>-</td> |
| 153 | - <td>FLOAT、FLOAT16、INT32、INT64、INT16、INT8、UINT8、UINT16、UINT32、UINT64、BOOL、DOUBLE、COMPLEX64、COMPLEX128 、BFLOAT16、HIFLOAT8、FLOAT8_E5M2、FLOAT8_E4M3FN、FLOAT8_E8M0、FLOAT6_E3M2、FLOAT6_E2M3、FLOAT4_E2M1、FLOAT4_E1M2。</td> | 153 | + <td>FLOAT、FLOAT16、INT32、INT64、INT16、INT8、UINT8、UINT16、UINT32、UINT64、BOOL、DOUBLE、COMPLEX64、COMPLEX128、BFLOAT16、HIFLOAT8、FLOAT8_E5M2、FLOAT8_E4M3FN、FLOAT8_E8M0、FLOAT6_E3M2、FLOAT6_E2M3、FLOAT4_E2M1、FLOAT4_E1M2。</td> |
| 154 | <td>-</td> | 154 | <td>-</td> |
| 155 | <td>-</td> | 155 | <td>-</td> |
| 156 | <td>-</td> | 156 | <td>-</td> |
| @@ -201,7 +201,7 @@ | |||
| 201 | 201 | ||
| 202 | 第一段接口完成入参校验,出现以下场景时报错: | 202 | 第一段接口完成入参校验,出现以下场景时报错: |
| 203 | 203 | ||
| 204 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 204 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 205 | <col style="width: 291px"> | 205 | <col style="width: 291px"> |
| 206 | <col style="width: 135px"> | 206 | <col style="width: 135px"> |
| 207 | <col style="width: 724px"> | 207 | <col style="width: 724px"> |
| @@ -261,7 +261,7 @@ | |||
| 261 | ## aclnnConstantPadNd | 261 | ## aclnnConstantPadNd |
| 262 | 262 | ||
| 263 | - **参数说明** | 263 | - **参数说明** |
| 264 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 264 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 265 | <col style="width: 184px"> | 265 | <col style="width: 184px"> |
| 266 | <col style="width: 134px"> | 266 | <col style="width: 134px"> |
| 267 | <col style="width: 832px"> | 267 | <col style="width: 832px"> |
| @@ -403,7 +403,7 @@ int main() { | |||
| 403 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 403 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 404 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 404 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 405 | 405 | ||
| 406 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 406 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 407 | uint64_t workspaceSize = 0; | 407 | uint64_t workspaceSize = 0; |
| 408 | aclOpExecutor* executor; | 408 | aclOpExecutor* executor; |
| 409 | // 调用aclnnConstantPadNd第一段接口 | 409 | // 调用aclnnConstantPadNd第一段接口 |
| @@ -59,7 +59,7 @@ aclnnStatus aclnnReplicationPad1d( | |||
| 59 | 59 | ||
| 60 | - **参数说明** | 60 | - **参数说明** |
| 61 | 61 | ||
| 62 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 62 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 63 | <col style="width: 211px"> | 63 | <col style="width: 211px"> |
| 64 | <col style="width: 120px"> | 64 | <col style="width: 120px"> |
| 65 | <col style="width: 266px"> | 65 | <col style="width: 266px"> |
| @@ -142,7 +142,7 @@ aclnnStatus aclnnReplicationPad1d( | |||
| 142 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 142 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 143 | 143 | ||
| 144 | 第一段接口完成入参校验,出现以下场景时报错: | 144 | 第一段接口完成入参校验,出现以下场景时报错: |
| 145 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 145 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 146 | <col style="width: 291px"> | 146 | <col style="width: 291px"> |
| 147 | <col style="width: 135px"> | 147 | <col style="width: 135px"> |
| 148 | <col style="width: 724px"> | 148 | <col style="width: 724px"> |
| @@ -186,7 +186,7 @@ aclnnStatus aclnnReplicationPad1d( | |||
| 186 | 186 | ||
| 187 | - **参数说明** | 187 | - **参数说明** |
| 188 | 188 | ||
| 189 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 189 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 190 | <col style="width: 184px"> | 190 | <col style="width: 184px"> |
| 191 | <col style="width: 134px"> | 191 | <col style="width: 134px"> |
| 192 | <col style="width: 832px"> | 192 | <col style="width: 832px"> |
| @@ -67,7 +67,7 @@ aclnnStatus aclnnReplicationPad2d( | |||
| 67 | 67 | ||
| 68 | - **参数说明** | 68 | - **参数说明** |
| 69 | 69 | ||
| 70 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 70 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 71 | <col style="width: 211px"> | 71 | <col style="width: 211px"> |
| 72 | <col style="width: 120px"> | 72 | <col style="width: 120px"> |
| 73 | <col style="width: 266px"> | 73 | <col style="width: 266px"> |
| @@ -150,7 +150,7 @@ aclnnStatus aclnnReplicationPad2d( | |||
| 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现以下场景时报错: | 152 | 第一段接口完成入参校验,出现以下场景时报错: |
| 153 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 153 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 154 | <col style="width: 291px"> | 154 | <col style="width: 291px"> |
| 155 | <col style="width: 135px"> | 155 | <col style="width: 135px"> |
| 156 | <col style="width: 724px"> | 156 | <col style="width: 724px"> |
| @@ -194,7 +194,7 @@ aclnnStatus aclnnReplicationPad2d( | |||
| 194 | 194 | ||
| 195 | - **参数说明** | 195 | - **参数说明** |
| 196 | 196 | ||
| 197 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 197 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 198 | <col style="width: 184px"> | 198 | <col style="width: 184px"> |
| 199 | <col style="width: 134px"> | 199 | <col style="width: 134px"> |
| 200 | <col style="width: 832px"> | 200 | <col style="width: 832px"> |
| @@ -78,7 +78,7 @@ aclnnStatus aclnnReplicationPad3d( | |||
| 78 | 78 | ||
| 79 | - **参数说明** | 79 | - **参数说明** |
| 80 | 80 | ||
| 81 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 81 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 82 | <col style="width: 211px"> | 82 | <col style="width: 211px"> |
| 83 | <col style="width: 120px"> | 83 | <col style="width: 120px"> |
| 84 | <col style="width: 266px"> | 84 | <col style="width: 266px"> |
| @@ -161,7 +161,7 @@ aclnnStatus aclnnReplicationPad3d( | |||
| 161 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 161 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 162 | 162 | ||
| 163 | 第一段接口完成入参校验,出现以下场景时报错: | 163 | 第一段接口完成入参校验,出现以下场景时报错: |
| 164 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 164 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 165 | <col style="width: 291px"> | 165 | <col style="width: 291px"> |
| 166 | <col style="width: 135px"> | 166 | <col style="width: 135px"> |
| 167 | <col style="width: 724px"> | 167 | <col style="width: 724px"> |
| @@ -205,7 +205,7 @@ aclnnStatus aclnnReplicationPad3d( | |||
| 205 | 205 | ||
| 206 | - **参数说明** | 206 | - **参数说明** |
| 207 | 207 | ||
| 208 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 208 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 209 | <col style="width: 184px"> | 209 | <col style="width: 184px"> |
| 210 | <col style="width: 134px"> | 210 | <col style="width: 134px"> |
| 211 | <col style="width: 832px"> | 211 | <col style="width: 832px"> |
| @@ -61,7 +61,7 @@ aclnnStatus aclnnReflectionPad2dBackward( | |||
| 61 | 61 | ||
| 62 | - **参数说明** | 62 | - **参数说明** |
| 63 | 63 | ||
| 64 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 64 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 65 | <col style="width: 211px"> | 65 | <col style="width: 211px"> |
| 66 | <col style="width: 120px"> | 66 | <col style="width: 120px"> |
| 67 | <col style="width: 266px"> | 67 | <col style="width: 266px"> |
| @@ -150,7 +150,7 @@ aclnnStatus aclnnReflectionPad2dBackward( | |||
| 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现如下场景时报错: | 152 | 第一段接口完成入参校验,出现如下场景时报错: |
| 153 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 153 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 154 | <col style="width: 291px"> | 154 | <col style="width: 291px"> |
| 155 | <col style="width: 135px"> | 155 | <col style="width: 135px"> |
| 156 | <col style="width: 724px"> | 156 | <col style="width: 724px"> |
| @@ -197,7 +197,7 @@ aclnnStatus aclnnReflectionPad2dBackward( | |||
| 197 | 197 | ||
| 198 | - **参数说明** | 198 | - **参数说明** |
| 199 | 199 | ||
| 200 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 200 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 201 | <col style="width: 184px"> | 201 | <col style="width: 184px"> |
| 202 | <col style="width: 134px"> | 202 | <col style="width: 134px"> |
| 203 | <col style="width: 832px"> | 203 | <col style="width: 832px"> |
| @@ -61,7 +61,7 @@ aclnnStatus aclnnReplicationPad1dBackward( | |||
| 61 | 61 | ||
| 62 | - **参数说明** | 62 | - **参数说明** |
| 63 | 63 | ||
| 64 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 64 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 65 | <col style="width: 211px"> | 65 | <col style="width: 211px"> |
| 66 | <col style="width: 120px"> | 66 | <col style="width: 120px"> |
| 67 | <col style="width: 266px"> | 67 | <col style="width: 266px"> |
| @@ -150,7 +150,7 @@ aclnnStatus aclnnReplicationPad1dBackward( | |||
| 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现如下场景时报错: | 152 | 第一段接口完成入参校验,出现如下场景时报错: |
| 153 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 153 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 154 | <col style="width: 291px"> | 154 | <col style="width: 291px"> |
| 155 | <col style="width: 135px"> | 155 | <col style="width: 135px"> |
| 156 | <col style="width: 724px"> | 156 | <col style="width: 724px"> |
| @@ -191,7 +191,7 @@ aclnnStatus aclnnReplicationPad1dBackward( | |||
| 191 | 191 | ||
| 192 | - **参数说明** | 192 | - **参数说明** |
| 193 | 193 | ||
| 194 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 194 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 195 | <col style="width: 184px"> | 195 | <col style="width: 184px"> |
| 196 | <col style="width: 134px"> | 196 | <col style="width: 134px"> |
| 197 | <col style="width: 832px"> | 197 | <col style="width: 832px"> |
| @@ -61,7 +61,7 @@ aclnnStatus aclnnReplicationPad2dBackward( | |||
| 61 | 61 | ||
| 62 | - **参数说明** | 62 | - **参数说明** |
| 63 | 63 | ||
| 64 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 64 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 65 | <col style="width: 211px"> | 65 | <col style="width: 211px"> |
| 66 | <col style="width: 120px"> | 66 | <col style="width: 120px"> |
| 67 | <col style="width: 266px"> | 67 | <col style="width: 266px"> |
| @@ -150,7 +150,7 @@ aclnnStatus aclnnReplicationPad2dBackward( | |||
| 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现如下场景时报错: | 152 | 第一段接口完成入参校验,出现如下场景时报错: |
| 153 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 153 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 154 | <col style="width: 291px"> | 154 | <col style="width: 291px"> |
| 155 | <col style="width: 135px"> | 155 | <col style="width: 135px"> |
| 156 | <col style="width: 724px"> | 156 | <col style="width: 724px"> |
| @@ -197,7 +197,7 @@ aclnnStatus aclnnReplicationPad2dBackward( | |||
| 197 | 197 | ||
| 198 | - **参数说明** | 198 | - **参数说明** |
| 199 | 199 | ||
| 200 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 200 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 201 | <col style="width: 184px"> | 201 | <col style="width: 184px"> |
| 202 | <col style="width: 134px"> | 202 | <col style="width: 134px"> |
| 203 | <col style="width: 832px"> | 203 | <col style="width: 832px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnReplicationPad3dBackward( | |||
| 53 | 53 | ||
| 54 | - **参数说明** | 54 | - **参数说明** |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 57 | <col style="width: 211px"> | 57 | <col style="width: 211px"> |
| 58 | <col style="width: 120px"> | 58 | <col style="width: 120px"> |
| 59 | <col style="width: 266px"> | 59 | <col style="width: 266px"> |
| @@ -146,7 +146,7 @@ aclnnStatus aclnnReplicationPad3dBackward( | |||
| 146 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 146 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 147 | 147 | ||
| 148 | 第一段接口完成入参校验,出现以下场景时报错: | 148 | 第一段接口完成入参校验,出现以下场景时报错: |
| 149 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 149 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 150 | <col style="width: 291px"> | 150 | <col style="width: 291px"> |
| 151 | <col style="width: 135px"> | 151 | <col style="width: 135px"> |
| 152 | <col style="width: 724px"> | 152 | <col style="width: 724px"> |
| @@ -190,7 +190,7 @@ aclnnStatus aclnnReplicationPad3dBackward( | |||
| 190 | 190 | ||
| 191 | - **参数说明** | 191 | - **参数说明** |
| 192 | 192 | ||
| 193 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 193 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 194 | <col style="width: 184px"> | 194 | <col style="width: 184px"> |
| 195 | <col style="width: 134px"> | 195 | <col style="width: 134px"> |
| 196 | <col style="width: 832px"> | 196 | <col style="width: 832px"> |
| @@ -61,7 +61,7 @@ aclnnStatus aclnnReflectionPad1dBackward( | |||
| 61 | 61 | ||
| 62 | - **参数说明** | 62 | - **参数说明** |
| 63 | 63 | ||
| 64 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 64 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 65 | <col style="width: 211px"> | 65 | <col style="width: 211px"> |
| 66 | <col style="width: 120px"> | 66 | <col style="width: 120px"> |
| 67 | <col style="width: 266px"> | 67 | <col style="width: 266px"> |
| @@ -150,7 +150,7 @@ aclnnStatus aclnnReflectionPad1dBackward( | |||
| 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 150 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现如下场景时报错: | 152 | 第一段接口完成入参校验,出现如下场景时报错: |
| 153 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 153 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 154 | <col style="width: 291px"> | 154 | <col style="width: 291px"> |
| 155 | <col style="width: 135px"> | 155 | <col style="width: 135px"> |
| 156 | <col style="width: 724px"> | 156 | <col style="width: 724px"> |
| @@ -194,7 +194,7 @@ aclnnStatus aclnnReflectionPad1dBackward( | |||
| 194 | 194 | ||
| 195 | - **参数说明** | 195 | - **参数说明** |
| 196 | 196 | ||
| 197 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 197 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 198 | <col style="width: 184px"> | 198 | <col style="width: 184px"> |
| 199 | <col style="width: 134px"> | 199 | <col style="width: 134px"> |
| 200 | <col style="width: 832px"> | 200 | <col style="width: 832px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 866px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 866px"><colgroup> |
| 21 | <col style="width: 139px"> | 21 | <col style="width: 139px"> |
| 22 | <col style="width: 148px"> | 22 | <col style="width: 148px"> |
| 23 | <col style="width: 236px"> | 23 | <col style="width: 236px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnReflectionPad3dBackward( | |||
| 53 | 53 | ||
| 54 | - **参数说明** | 54 | - **参数说明** |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 57 | <col style="width: 211px"> | 57 | <col style="width: 211px"> |
| 58 | <col style="width: 120px"> | 58 | <col style="width: 120px"> |
| 59 | <col style="width: 266px"> | 59 | <col style="width: 266px"> |
| @@ -142,7 +142,7 @@ aclnnStatus aclnnReflectionPad3dBackward( | |||
| 142 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 142 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 143 | 143 | ||
| 144 | 第一段接口完成入参校验,出现以下场景时报错: | 144 | 第一段接口完成入参校验,出现以下场景时报错: |
| 145 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 145 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 146 | <col style="width: 291px"> | 146 | <col style="width: 291px"> |
| 147 | <col style="width: 135px"> | 147 | <col style="width: 135px"> |
| 148 | <col style="width: 724px"> | 148 | <col style="width: 724px"> |
| @@ -186,7 +186,7 @@ aclnnStatus aclnnReflectionPad3dBackward( | |||
| 186 | 186 | ||
| 187 | - **参数说明** | 187 | - **参数说明** |
| 188 | 188 | ||
| 189 | - <table style="undefined;table-layout: fixed; width: 1126px"><colgroup> | 189 | + <table style="table-layout: fixed; width: 1126px"><colgroup> |
| 190 | <col style="width: 141px"> | 190 | <col style="width: 141px"> |
| 191 | <col style="width: 140px"> | 191 | <col style="width: 140px"> |
| 192 | <col style="width: 845px"> | 192 | <col style="width: 845px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1400px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1400px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 180px"> | 22 | <col style="width: 180px"> |
| 23 | <col style="width: 360px"> | 23 | <col style="width: 360px"> |
| @@ -68,7 +68,7 @@ aclnnStatus aclnnRoll( | |||
| 68 | 68 | ||
| 69 | - **参数说明** | 69 | - **参数说明** |
| 70 | 70 | ||
| 71 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 71 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 72 | <col style="width: 211px"> | 72 | <col style="width: 211px"> |
| 73 | <col style="width: 120px"> | 73 | <col style="width: 120px"> |
| 74 | <col style="width: 266px"> | 74 | <col style="width: 266px"> |
| @@ -170,7 +170,7 @@ aclnnStatus aclnnRoll( | |||
| 170 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 170 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 171 | 171 | ||
| 172 | 第一段接口完成入参校验,出现以下场景时报错: | 172 | 第一段接口完成入参校验,出现以下场景时报错: |
| 173 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 173 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 174 | <col style="width: 291px"> | 174 | <col style="width: 291px"> |
| 175 | <col style="width: 135px"> | 175 | <col style="width: 135px"> |
| 176 | <col style="width: 724px"> | 176 | <col style="width: 724px"> |
| @@ -217,7 +217,7 @@ aclnnStatus aclnnRoll( | |||
| 217 | 217 | ||
| 218 | - **参数说明** | 218 | - **参数说明** |
| 219 | 219 | ||
| 220 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 220 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 221 | <col style="width: 184px"> | 221 | <col style="width: 184px"> |
| 222 | <col style="width: 134px"> | 222 | <col style="width: 134px"> |
| 223 | <col style="width: 832px"> | 223 | <col style="width: 832px"> |
| @@ -359,7 +359,7 @@ int main() { | |||
| 359 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 359 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 360 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 360 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 361 | 361 | ||
| 362 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 362 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 363 | uint64_t workspaceSize = 0; | 363 | uint64_t workspaceSize = 0; |
| 364 | aclOpExecutor* executor; | 364 | aclOpExecutor* executor; |
| 365 | // 调用aclnnRoll第一段接口 | 365 | // 调用aclnnRoll第一段接口 |
| @@ -21,7 +21,7 @@ $$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 25 | <col style="width: 170px"> | 25 | <col style="width: 170px"> |
| 26 | <col style="width: 170px"> | 26 | <col style="width: 170px"> |
| 27 | <col style="width: 310px"> | 27 | <col style="width: 310px"> |
| @@ -78,7 +78,7 @@ aclnnStatus aclnnSlice( | |||
| 78 | 78 | ||
| 79 | - **参数说明:** | 79 | - **参数说明:** |
| 80 | 80 | ||
| 81 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 81 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 82 | <col style="width: 211px"> | 82 | <col style="width: 211px"> |
| 83 | <col style="width: 120px"> | 83 | <col style="width: 120px"> |
| 84 | <col style="width: 266px"> | 84 | <col style="width: 266px"> |
| @@ -193,7 +193,7 @@ aclnnStatus aclnnSlice( | |||
| 193 | 193 | ||
| 194 | 第一段接口完成入参校验,出现以下场景时报错: | 194 | 第一段接口完成入参校验,出现以下场景时报错: |
| 195 | 195 | ||
| 196 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 196 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 197 | <col style="width: 291px"> | 197 | <col style="width: 291px"> |
| 198 | <col style="width: 135px"> | 198 | <col style="width: 135px"> |
| 199 | <col style="width: 724px"> | 199 | <col style="width: 724px"> |
| @@ -237,7 +237,7 @@ aclnnStatus aclnnSlice( | |||
| 237 | 237 | ||
| 238 | - **参数说明:** | 238 | - **参数说明:** |
| 239 | 239 | ||
| 240 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 240 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 241 | <col style="width: 184px"> | 241 | <col style="width: 184px"> |
| 242 | <col style="width: 134px"> | 242 | <col style="width: 134px"> |
| 243 | <col style="width: 832px"> | 243 | <col style="width: 832px"> |
| @@ -372,7 +372,7 @@ int main() { | |||
| 372 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 372 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 373 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 373 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 374 | 374 | ||
| 375 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 375 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 376 | uint64_t workspaceSize = 0; | 376 | uint64_t workspaceSize = 0; |
| 377 | aclOpExecutor* executor; | 377 | aclOpExecutor* executor; |
| 378 | // 调用aclnnSlice第一段接口 | 378 | // 调用aclnnSlice第一段接口 |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -46,7 +46,7 @@ | |||
| 46 | 46 | ||
| 47 | ## 参数说明 | 47 | ## 参数说明 |
| 48 | 48 | ||
| 49 | -<table style="undefined;table-layout: fixed; width: 1480px"> | 49 | +<table style="table-layout: fixed; width: 1480px"> |
| 50 | <colgroup> | 50 | <colgroup> |
| 51 | <col style="width: 177px"> | 51 | <col style="width: 177px"> |
| 52 | <col style="width: 120px"> | 52 | <col style="width: 120px"> |
| @@ -20,9 +20,9 @@ | |||
| 20 | 20 | ||
| 21 | - 计算公式: | 21 | - 计算公式: |
| 22 | 设输入张量x为N维,形状为 $[x_0, x_1, \ldots, x_{N-1}]$,block_shape为M维1D张量 $[b_0, b_1, \ldots, b_{M-1}]$,paddings为 $M \times 2$ 的2D张量 $[[p_{00}, p_{01}], [p_{10}, p_{11}], \ldots, [p_{M-1,0}, p_{M-1,1}]]$,满足 $1 \leq M < N \leq 8$。 | 22 | 设输入张量x为N维,形状为 $[x_0, x_1, \ldots, x_{N-1}]$,block_shape为M维1D张量 $[b_0, b_1, \ldots, b_{M-1}]$,paddings为 $M \times 2$ 的2D张量 $[[p_{00}, p_{01}], [p_{10}, p_{11}], \ldots, [p_{M-1,0}, p_{M-1,1}]]$,满足 $1 \leq M < N \leq 8$。 |
| 23 | - | 23 | + |
| 24 | 输出张量y形状为 $[y_0, y_1, \ldots, y_{N-1}]$,计算方式如下: | 24 | 输出张量y形状为 $[y_0, y_1, \ldots, y_{N-1}]$,计算方式如下: |
| 25 | - | 25 | + |
| 26 | $$ | 26 | $$ |
| 27 | y_i = \begin{cases} | 27 | y_i = \begin{cases} |
| 28 | x_0 \times \prod_{j=0}^{M-1} b_j, & i = 0 \\ | 28 | x_0 \times \prod_{j=0}^{M-1} b_j, & i = 0 \\ |
| @@ -30,12 +30,12 @@ | |||
| 30 | x_i, & M+1 \leq i \leq N-1 | 30 | x_i, & M+1 \leq i \leq N-1 |
| 31 | \end{cases} | 31 | \end{cases} |
| 32 | $$ | 32 | $$ |
| 33 | - | 33 | + |
| 34 | 其中,对于每个空间维度i,$x_i + p_{i-1,0} + p_{i-1,1}$ 必须能够被 $b_{i-1}$ 整除。 | 34 | 其中,对于每个空间维度i,$x_i + p_{i-1,0} + p_{i-1,1}$ 必须能够被 $b_{i-1}$ 整除。 |
| 35 | 35 | ||
| 36 | ## 参数说明 | 36 | ## 参数说明 |
| 37 | 37 | ||
| 38 | -<table style="undefined;table-layout: fixed; width: 1480px"> | 38 | +<table style="table-layout: fixed; width: 1480px"> |
| 39 | <colgroup> | 39 | <colgroup> |
| 40 | <col style="width: 177px"> | 40 | <col style="width: 177px"> |
| 41 | <col style="width: 120px"> | 41 | <col style="width: 120px"> |
| @@ -31,7 +31,7 @@ | |||
| 31 | 31 | ||
| 32 | ## 参数说明 | 32 | ## 参数说明 |
| 33 | 33 | ||
| 34 | -<table style="undefined;table-layout: fixed; width: 1480px"> | 34 | +<table style="table-layout: fixed; width: 1480px"> |
| 35 | <colgroup> | 35 | <colgroup> |
| 36 | <col style="width: 177px"> | 36 | <col style="width: 177px"> |
| 37 | <col style="width: 120px"> | 37 | <col style="width: 120px"> |
| @@ -32,7 +32,7 @@ $$ | |||
| 32 | 32 | ||
| 33 | ## 参数说明 | 33 | ## 参数说明 |
| 34 | 34 | ||
| 35 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 35 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 36 | <col style="width: 100px"> | 36 | <col style="width: 100px"> |
| 37 | <col style="width: 150px"> | 37 | <col style="width: 150px"> |
| 38 | <col style="width: 280px"> | 38 | <col style="width: 280px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnSplitTensor( | |||
| 53 | 53 | ||
| 54 | - **参数说明** | 54 | - **参数说明** |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 57 | <col style="width: 211px"> | 57 | <col style="width: 211px"> |
| 58 | <col style="width: 120px"> | 58 | <col style="width: 120px"> |
| 59 | <col style="width: 266px"> | 59 | <col style="width: 266px"> |
| @@ -146,7 +146,7 @@ aclnnStatus aclnnSplitTensor( | |||
| 146 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 146 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 147 | 147 | ||
| 148 | 第一段接口完成入参校验,出现以下场景时报错: | 148 | 第一段接口完成入参校验,出现以下场景时报错: |
| 149 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 149 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 150 | <col style="width: 291px"> | 150 | <col style="width: 291px"> |
| 151 | <col style="width: 135px"> | 151 | <col style="width: 135px"> |
| 152 | <col style="width: 724px"> | 152 | <col style="width: 724px"> |
| @@ -190,7 +190,7 @@ aclnnStatus aclnnSplitTensor( | |||
| 190 | 190 | ||
| 191 | - **参数说明** | 191 | - **参数说明** |
| 192 | 192 | ||
| 193 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 193 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 194 | <col style="width: 184px"> | 194 | <col style="width: 184px"> |
| 195 | <col style="width: 134px"> | 195 | <col style="width: 134px"> |
| 196 | <col style="width: 832px"> | 196 | <col style="width: 832px"> |
| @@ -359,7 +359,7 @@ int main() | |||
| 359 | aclTensorList* out = aclCreateTensorList(tmp.data(), tmp.size()); | 359 | aclTensorList* out = aclCreateTensorList(tmp.data(), tmp.size()); |
| 360 | CHECK_RET(out != nullptr, return ret); | 360 | CHECK_RET(out != nullptr, return ret); |
| 361 | 361 | ||
| 362 | - // 调用CANN算子库API,需要修改为具体的Api名称 | 362 | + // 调用CANN算子库API,需要修改为具体的API名称 |
| 363 | uint64_t workspaceSize = 0; | 363 | uint64_t workspaceSize = 0; |
| 364 | aclOpExecutor* executor; | 364 | aclOpExecutor* executor; |
| 365 | // 调用aclnnSplitTensor第一段接口 | 365 | // 调用aclnnSplitTensor第一段接口 |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnSplitWithSize( | |||
| 53 | 53 | ||
| 54 | - **参数说明** | 54 | - **参数说明** |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 57 | <col style="width: 211px"> | 57 | <col style="width: 211px"> |
| 58 | <col style="width: 120px"> | 58 | <col style="width: 120px"> |
| 59 | <col style="width: 266px"> | 59 | <col style="width: 266px"> |
| @@ -149,7 +149,7 @@ aclnnStatus aclnnSplitWithSize( | |||
| 149 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 149 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 150 | 150 | ||
| 151 | 第一段接口完成入参校验,出现以下场景时报错: | 151 | 第一段接口完成入参校验,出现以下场景时报错: |
| 152 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 152 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 153 | <col style="width: 291px"> | 153 | <col style="width: 291px"> |
| 154 | <col style="width: 135px"> | 154 | <col style="width: 135px"> |
| 155 | <col style="width: 724px"> | 155 | <col style="width: 724px"> |
| @@ -178,7 +178,7 @@ aclnnStatus aclnnSplitWithSize( | |||
| 178 | <td>out中的tensor长度不在支持的范围之内。</td> | 178 | <td>out中的tensor长度不在支持的范围之内。</td> |
| 179 | </tr> | 179 | </tr> |
| 180 | <tr> | 180 | <tr> |
| 181 | - <td>dim的取值越界不在[-dimNum, dimNum -1],dimNum为self的维度大小。</td> | 181 | + <td>dim的取值越界,不在[-dimNum, dimNum -1]范围内,dimNum为self的维度大小。</td> |
| 182 | </tr> | 182 | </tr> |
| 183 | <tr> | 183 | <tr> |
| 184 | <td>splitSize中各元素之和不等于被split维度的shape大小时。</td> | 184 | <td>splitSize中各元素之和不等于被split维度的shape大小时。</td> |
| @@ -190,7 +190,7 @@ aclnnStatus aclnnSplitWithSize( | |||
| 190 | 190 | ||
| 191 | - **参数说明** | 191 | - **参数说明** |
| 192 | 192 | ||
| 193 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 193 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 194 | <col style="width: 184px"> | 194 | <col style="width: 184px"> |
| 195 | <col style="width: 134px"> | 195 | <col style="width: 134px"> |
| 196 | <col style="width: 832px"> | 196 | <col style="width: 832px"> |
| @@ -363,7 +363,7 @@ int main() | |||
| 363 | aclTensorList* out = aclCreateTensorList(tmp.data(), tmp.size()); | 363 | aclTensorList* out = aclCreateTensorList(tmp.data(), tmp.size()); |
| 364 | CHECK_RET(out != nullptr, return ret); | 364 | CHECK_RET(out != nullptr, return ret); |
| 365 | 365 | ||
| 366 | - // 调用CANN算子库API,需要修改为具体的Api名称 | 366 | + // 调用CANN算子库API,需要修改为具体的API名称 |
| 367 | uint64_t workspaceSize = 0; | 367 | uint64_t workspaceSize = 0; |
| 368 | aclOpExecutor* executor; | 368 | aclOpExecutor* executor; |
| 369 | // 调用aclnnSplitWithSize第一段接口 | 369 | // 调用aclnnSplitWithSize第一段接口 |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 21 | <col style="width: 170px"> | 21 | <col style="width: 170px"> |
| 22 | <col style="width: 170px"> | 22 | <col style="width: 170px"> |
| 23 | <col style="width: 310px"> | 23 | <col style="width: 310px"> |
| @@ -36,7 +36,7 @@ | |||
| 36 | <tr> | 36 | <tr> |
| 37 | <td>x</td> | 37 | <td>x</td> |
| 38 | <td>输入</td> | 38 | <td>输入</td> |
| 39 | - <td>输入的张量</td> | 39 | + <td>输入的张量</td> |
| 40 | <td>INT8、UINT8、INT16、UINT16、INT32、UINT32、INT64、UINT64、FLOAT、FLOAT16、BF16、BOOL、COMPLEX32、COMPLEX64、HIFLOAT8、FLOAT8_E5M2、FLOAT8_E4M3FN</td> | 40 | <td>INT8、UINT8、INT16、UINT16、INT32、UINT32、INT64、UINT64、FLOAT、FLOAT16、BF16、BOOL、COMPLEX32、COMPLEX64、HIFLOAT8、FLOAT8_E5M2、FLOAT8_E4M3FN</td> |
| 41 | <td>ND</td> | 41 | <td>ND</td> |
| 42 | </tr> | 42 | </tr> |
| @@ -107,7 +107,7 @@ | |||
| 107 | 107 | ||
| 108 | ## 约束说明 | 108 | ## 约束说明 |
| 109 | 109 | ||
| 110 | -无 | 110 | +无 |
| 111 | 111 | ||
| 112 | ## 调用说明 | 112 | ## 调用说明 |
| 113 | 113 | ||
| @@ -56,7 +56,7 @@ | |||
| 56 | $endMask$指定$bit$位为1对应的索引维度的$end$被忽略, | 56 | $endMask$指定$bit$位为1对应的索引维度的$end$被忽略, |
| 57 | $ellipsisMask$从$bit$位为1对应的索引维度开始全选后续维度,直到遇到指定$begin$才退出, | 57 | $ellipsisMask$从$bit$位为1对应的索引维度开始全选后续维度,直到遇到指定$begin$才退出, |
| 58 | $newAxisMask$指定$bit$位为1对应的索引维度增加维度为1的$shape$, | 58 | $newAxisMask$指定$bit$位为1对应的索引维度增加维度为1的$shape$, |
| 59 | - $shrinkAxisMask$指定$bit$位为1对应的索引维度强制降为1 。 | 59 | + $shrinkAxisMask$指定$bit$位为1对应的索引维度强制降为1。 |
| 60 | 60 | ||
| 61 | ## 函数原型 | 61 | ## 函数原型 |
| 62 | 62 | ||
| @@ -89,7 +89,7 @@ aclnnStatus aclnnStridedSlice( | |||
| 89 | ## aclnnStridedSliceGetWorkspaceSize | 89 | ## aclnnStridedSliceGetWorkspaceSize |
| 90 | 90 | ||
| 91 | - **参数说明**: | 91 | - **参数说明**: |
| 92 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 92 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 93 | <col style="width: 211px"> | 93 | <col style="width: 211px"> |
| 94 | <col style="width: 120px"> | 94 | <col style="width: 120px"> |
| 95 | <col style="width: 266px"> | 95 | <col style="width: 266px"> |
| @@ -194,7 +194,7 @@ aclnnStatus aclnnStridedSlice( | |||
| 194 | <tr> | 194 | <tr> |
| 195 | <td>shrinkAxisMask</td> | 195 | <td>shrinkAxisMask</td> |
| 196 | <td>输入</td> | 196 | <td>输入</td> |
| 197 | - <td>把bit位为1对应的索引维度强制降为1 。</td> | 197 | + <td>把bit位为1对应的索引维度强制降为1。</td> |
| 198 | <td>shrinkAxisMask中bit位为1的索引,对应的strides需要大于0,即正数。</td> | 198 | <td>shrinkAxisMask中bit位为1的索引,对应的strides需要大于0,即正数。</td> |
| 199 | <td>INT64</td> | 199 | <td>INT64</td> |
| 200 | <td>-</td> | 200 | <td>-</td> |
| @@ -240,7 +240,7 @@ aclnnStatus aclnnStridedSlice( | |||
| 240 | 240 | ||
| 241 | 第一段接口完成入参校验,出现以下场景时报错: | 241 | 第一段接口完成入参校验,出现以下场景时报错: |
| 242 | 242 | ||
| 243 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 243 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 244 | <col style="width: 291px"> | 244 | <col style="width: 291px"> |
| 245 | <col style="width: 135px"> | 245 | <col style="width: 135px"> |
| 246 | <col style="width: 724px"> | 246 | <col style="width: 724px"> |
| @@ -292,7 +292,7 @@ aclnnStatus aclnnStridedSlice( | |||
| 292 | ## aclnnStridedSlice | 292 | ## aclnnStridedSlice |
| 293 | 293 | ||
| 294 | - **参数说明**: | 294 | - **参数说明**: |
| 295 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 295 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 296 | <col style="width: 184px"> | 296 | <col style="width: 184px"> |
| 297 | <col style="width: 134px"> | 297 | <col style="width: 134px"> |
| 298 | <col style="width: 832px"> | 298 | <col style="width: 832px"> |
| @@ -459,10 +459,10 @@ int main() | |||
| 459 | strides = aclCreateIntArray(stridesData.data(), 2); | 459 | strides = aclCreateIntArray(stridesData.data(), 2); |
| 460 | CHECK_RET(strides != nullptr, return ret); | 460 | CHECK_RET(strides != nullptr, return ret); |
| 461 | 461 | ||
| 462 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 462 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 463 | uint64_t workspaceSize = 0; | 463 | uint64_t workspaceSize = 0; |
| 464 | aclOpExecutor* executor; | 464 | aclOpExecutor* executor; |
| 465 | - // 调用aclnnCast第一段接口 | 465 | + // 调用aclnnStridedSliceGetWorkspaceSize第一段接口 |
| 466 | ret = aclnnStridedSliceGetWorkspaceSize( | 466 | ret = aclnnStridedSliceGetWorkspaceSize( |
| 467 | self, begin, end, strides, beginMask, endMask, ellipsisMask, newAxisMask, shrinkAxisMask, out, &workspaceSize, | 467 | self, begin, end, strides, beginMask, endMask, ellipsisMask, newAxisMask, shrinkAxisMask, out, &workspaceSize, |
| 468 | &executor); | 468 | &executor); |
| @@ -473,7 +473,7 @@ int main() | |||
| 473 | ret = aclrtMalloc(&workspaceAddr, workspaceSize, ACL_MEM_MALLOC_HUGE_FIRST); | 473 | ret = aclrtMalloc(&workspaceAddr, workspaceSize, ACL_MEM_MALLOC_HUGE_FIRST); |
| 474 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("allocate workspace failed. ERROR: %d\n", ret); return ret); | 474 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("allocate workspace failed. ERROR: %d\n", ret); return ret); |
| 475 | } | 475 | } |
| 476 | - // 调用aclnnCast第二段接口 | 476 | + // 调用aclnnStridedSlice第二段接口 |
| 477 | ret = aclnnStridedSlice(workspaceAddr, workspaceSize, executor, stream); | 477 | ret = aclnnStridedSlice(workspaceAddr, workspaceSize, executor, stream); |
| 478 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclnnStridedSlice failed. ERROR: %d\n", ret); return ret); | 478 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclnnStridedSlice failed. ERROR: %d\n", ret); return ret); |
| 479 | 479 | ||
| @@ -16,11 +16,11 @@ | |||
| 16 | ## 功能说明 | 16 | ## 功能说明 |
| 17 | 17 | ||
| 18 | - 算子功能:StridedSliceAssignV2是一种张量切片赋值操作,它可以将张量inputValue的内容,赋值给目标张量varRef中的指定位置。 | 18 | - 算子功能:StridedSliceAssignV2是一种张量切片赋值操作,它可以将张量inputValue的内容,赋值给目标张量varRef中的指定位置。 |
| 19 | - inputValue的shape第i维的计算公式为:$inputValueShape[i] = \lceil\frac{end[i] - begin[i]}{strides[i]} \rceil$,其中$\lceil x\rceil$ 表示对 $x$向上取整。$end$ 和 $begin$ 为经过特殊值调整后的取值,调整方式为:当 $end[i] < 0$ 时,$end[i]=varShape[i] + end[i]$ ,若仍有$end[i] < 0$,则 $end[i] = 0$ ,当 $end[i] > varShape[i]$ 时, $end[i] = varShape[i]$ 。$begin$ 同理。 | 19 | + inputValue的shape第i维的计算公式为:$inputValueShape[i] = \lceil\frac{end[i] - begin[i]}{strides[i]} \rceil$,其中$\lceil x\rceil$ 表示对 $x$向上取整。$end$ 和 $begin$ 为经过特殊值调整后的取值,调整方式为:当 $end[i] < 0$ 时,$end[i]=varShape[i] + end[i]$,若仍有$end[i] < 0$,则 $end[i] = 0$,当 $end[i] > varShape[i]$ 时,$end[i] = varShape[i]$。$begin$ 同理。 |
| 20 | 20 | ||
| 21 | ## 参数说明 | 21 | ## 参数说明 |
| 22 | 22 | ||
| 23 | -<table style="undefined;table-layout: fixed; width: 1162px"><colgroup> | 23 | +<table style="table-layout: fixed; width: 1162px"><colgroup> |
| 24 | <col style="width: 139px"> | 24 | <col style="width: 139px"> |
| 25 | <col style="width: 148px"> | 25 | <col style="width: 148px"> |
| 26 | <col style="width: 532px"> | 26 | <col style="width: 532px"> |
| @@ -55,7 +55,7 @@ aclnnStatus aclnnStridedSliceAssignV2( | |||
| 55 | 55 | ||
| 56 | - **参数说明:** | 56 | - **参数说明:** |
| 57 | 57 | ||
| 58 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 58 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 59 | <col style="width: 211px"> | 59 | <col style="width: 211px"> |
| 60 | <col style="width: 120px"> | 60 | <col style="width: 120px"> |
| 61 | <col style="width: 266px"> | 61 | <col style="width: 266px"> |
| @@ -164,7 +164,7 @@ aclnnStatus aclnnStridedSliceAssignV2( | |||
| 164 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 164 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 165 | 165 | ||
| 166 | 第一段接口完成入参校验,出现以下场景时报错: | 166 | 第一段接口完成入参校验,出现以下场景时报错: |
| 167 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 167 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 168 | <col style="width: 291px"> | 168 | <col style="width: 291px"> |
| 169 | <col style="width: 135px"> | 169 | <col style="width: 135px"> |
| 170 | <col style="width: 724px"> | 170 | <col style="width: 724px"> |
| @@ -192,7 +192,7 @@ aclnnStatus aclnnStridedSliceAssignV2( | |||
| 192 | ## aclnnStridedSliceAssignV2 | 192 | ## aclnnStridedSliceAssignV2 |
| 193 | 193 | ||
| 194 | - **参数说明**: | 194 | - **参数说明**: |
| 195 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 195 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 196 | <col style="width: 184px"> | 196 | <col style="width: 184px"> |
| 197 | <col style="width: 134px"> | 197 | <col style="width: 134px"> |
| 198 | <col style="width: 832px"> | 198 | <col style="width: 832px"> |
| @@ -235,7 +235,7 @@ aclnnStatus aclnnStridedSliceAssignV2( | |||
| 235 | 235 | ||
| 236 | - 确定性计算: | 236 | - 确定性计算: |
| 237 | - aclnnStridedSliceAssignV2默认确定性实现。 | 237 | - aclnnStridedSliceAssignV2默认确定性实现。 |
| 238 | -inputValue的shape第i维的计算公式为:$inputValueShape[i] = \lceil\frac{end[i] - begin[i]}{strides[i]} \rceil$,其中$\lceil x\rceil$ 表示对 $x$向上取整。$end$ 和 $begin$ 为经过特殊值调整后的取值,调整方式为:当 $end[i] < 0$ 时,$end[i]=varShape[i] + end[i]$ ,若仍有$end[i] < 0$,则 $end[i] = 0$ ,当 $end[i] > varShape[i]$ 时, $end[i] = varShape[i]$。$begin$ 同理。 | 238 | +inputValue的shape第i维的计算公式为:$inputValueShape[i] = \lceil\frac{end[i] - begin[i]}{strides[i]} \rceil$,其中$\lceil x\rceil$ 表示对 $x$向上取整。$end$ 和 $begin$ 为经过特殊值调整后的取值,调整方式为:当 $end[i] < 0$ 时,$end[i]=varShape[i] + end[i]$,若仍有$end[i] < 0$,则 $end[i] = 0$,当 $end[i] > varShape[i]$ 时,$end[i] = varShape[i]$。$begin$ 同理。 |
| 239 | 239 | ||
| 240 | ## 调用示例 | 240 | ## 调用示例 |
| 241 | 241 | ||
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 21 | <col style="width: 100px"> | 21 | <col style="width: 100px"> |
| 22 | <col style="width: 150px"> | 22 | <col style="width: 150px"> |
| 23 | <col style="width: 280px"> | 23 | <col style="width: 280px"> |
| @@ -15,7 +15,7 @@ | |||
| 15 | 15 | ||
| 16 | ## 参数说明 | 16 | ## 参数说明 |
| 17 | 17 | ||
| 18 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 18 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 19 | <col style="width: 170px"> | 19 | <col style="width: 170px"> |
| 20 | <col style="width: 170px"> | 20 | <col style="width: 170px"> |
| 21 | <col style="width: 310px"> | 21 | <col style="width: 310px"> |
| @@ -34,7 +34,7 @@ | |||
| 34 | <tr> | 34 | <tr> |
| 35 | <td>x</td> | 35 | <td>x</td> |
| 36 | <td>输入</td> | 36 | <td>输入</td> |
| 37 | - <td>输入的张量</td> | 37 | + <td>输入的张量</td> |
| 38 | <td>INT8、UINT8、INT16、UINT16、INT32、UINT32、INT64、UINT64、FLOAT、FLOAT16、BF16、BOOL、COMPLEX32、COMPLEX64、HIFLOAT8、FLOAT8_E5M2、FLOAT8_E4M3FN、FLOAT8_E8M0</td> | 38 | <td>INT8、UINT8、INT16、UINT16、INT32、UINT32、INT64、UINT64、FLOAT、FLOAT16、BF16、BOOL、COMPLEX32、COMPLEX64、HIFLOAT8、FLOAT8_E5M2、FLOAT8_E4M3FN、FLOAT8_E8M0</td> |
| 39 | <td>ND</td> | 39 | <td>ND</td> |
| 40 | </tr> | 40 | </tr> |
| @@ -15,7 +15,7 @@ | |||
| 15 | 15 | ||
| 16 | ## 参数说明 | 16 | ## 参数说明 |
| 17 | 17 | ||
| 18 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 18 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 19 | <col style="width: 170px"> | 19 | <col style="width: 170px"> |
| 20 | <col style="width: 170px"> | 20 | <col style="width: 170px"> |
| 21 | <col style="width: 310px"> | 21 | <col style="width: 310px"> |
| @@ -76,7 +76,7 @@ aclnnStatus aclnnSliceV2( | |||
| 76 | 76 | ||
| 77 | - **参数说明** | 77 | - **参数说明** |
| 78 | 78 | ||
| 79 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 79 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 80 | <col style="width: 211px"> | 80 | <col style="width: 211px"> |
| 81 | <col style="width: 120px"> | 81 | <col style="width: 120px"> |
| 82 | <col style="width: 266px"> | 82 | <col style="width: 266px"> |
| @@ -132,7 +132,7 @@ aclnnStatus aclnnSliceV2( | |||
| 132 | <td>axes(aclIntArray*)</td> | 132 | <td>axes(aclIntArray*)</td> |
| 133 | <td>输入</td> | 133 | <td>输入</td> |
| 134 | <td>公式中的axes,切片的轴。</td> | 134 | <td>公式中的axes,切片的轴。</td> |
| 135 | - <td>starts、ends 、axes、steps的元素个数相同。axes的元素需要在[-self.dim(), self.dim() - 1]范围内,且表示的轴不能重复。</td> | 135 | + <td>starts、ends、axes、steps的元素个数相同。axes的元素需要在[-self.dim(), self.dim() - 1]范围内,且表示的轴不能重复。</td> |
| 136 | <td>-</td> | 136 | <td>-</td> |
| 137 | <td>-</td> | 137 | <td>-</td> |
| 138 | <td>-</td> | 138 | <td>-</td> |
| @@ -189,7 +189,7 @@ aclnnStatus aclnnSliceV2( | |||
| 189 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 189 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 190 | 190 | ||
| 191 | 第一段接口完成入参校验,出现以下场景时报错: | 191 | 第一段接口完成入参校验,出现以下场景时报错: |
| 192 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 192 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 193 | <col style="width: 291px"> | 193 | <col style="width: 291px"> |
| 194 | <col style="width: 135px"> | 194 | <col style="width: 135px"> |
| 195 | <col style="width: 724px"> | 195 | <col style="width: 724px"> |
| @@ -236,7 +236,7 @@ aclnnStatus aclnnSliceV2( | |||
| 236 | 236 | ||
| 237 | - **参数说明** | 237 | - **参数说明** |
| 238 | 238 | ||
| 239 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 239 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 240 | <col style="width: 184px"> | 240 | <col style="width: 184px"> |
| 241 | <col style="width: 134px"> | 241 | <col style="width: 134px"> |
| 242 | <col style="width: 832px"> | 242 | <col style="width: 832px"> |
| @@ -384,7 +384,7 @@ int main() { | |||
| 384 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 384 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 385 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 385 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 386 | 386 | ||
| 387 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 387 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 388 | uint64_t workspaceSize = 0; | 388 | uint64_t workspaceSize = 0; |
| 389 | aclOpExecutor* executor; | 389 | aclOpExecutor* executor; |
| 390 | // 调用aclnnSliceV2第一段接口 | 390 | // 调用aclnnSliceV2第一段接口 |
| @@ -21,7 +21,7 @@ $$y=x$$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -25,7 +25,7 @@ $$outputX_i = x_i$$ | |||
| 25 | 25 | ||
| 26 | ## 参数说明 | 26 | ## 参数说明 |
| 27 | 27 | ||
| 28 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 28 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 29 | <col style="width: 100px"> | 29 | <col style="width: 100px"> |
| 30 | <col style="width: 150px"> | 30 | <col style="width: 150px"> |
| 31 | <col style="width: 280px"> | 31 | <col style="width: 280px"> |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 21 | <col style="width: 140px"> | 21 | <col style="width: 140px"> |
| 22 | <col style="width: 140px"> | 22 | <col style="width: 140px"> |
| 23 | <col style="width: 180px"> | 23 | <col style="width: 180px"> |
| @@ -113,7 +113,7 @@ aclnnStatus aclnnCalculateConvolutionWeightSize( | |||
| 113 | 113 | ||
| 114 | 第一段接口完成入参校验,出现以下场景时报错: | 114 | 第一段接口完成入参校验,出现以下场景时报错: |
| 115 | 115 | ||
| 116 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 116 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 117 | <col style="width: 291px"> | 117 | <col style="width: 291px"> |
| 118 | <col style="width: 135px"> | 118 | <col style="width: 135px"> |
| 119 | <col style="width: 724px"> | 119 | <col style="width: 724px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnCalculateMatmulWeightSize( | |||
| 53 | 53 | ||
| 54 | - **参数说明:** | 54 | - **参数说明:** |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 57 | <col style="width: 211px"> | 57 | <col style="width: 211px"> |
| 58 | <col style="width: 120px"> | 58 | <col style="width: 120px"> |
| 59 | <col style="width: 266px"> | 59 | <col style="width: 266px"> |
| @@ -103,7 +103,7 @@ aclnnStatus aclnnCalculateMatmulWeightSize( | |||
| 103 | 103 | ||
| 104 | 第一段接口完成入参校验,出现以下场景时报错: | 104 | 第一段接口完成入参校验,出现以下场景时报错: |
| 105 | 105 | ||
| 106 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 106 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 107 | <col style="width: 291px"> | 107 | <col style="width: 291px"> |
| 108 | <col style="width: 135px"> | 108 | <col style="width: 135px"> |
| 109 | <col style="width: 724px"> | 109 | <col style="width: 724px"> |
| @@ -287,7 +287,7 @@ int main() { | |||
| 287 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT16, &out); | 287 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT16, &out); |
| 288 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 288 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 289 | 289 | ||
| 290 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 290 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 291 | int8_t cubeMathType = 1; | 291 | int8_t cubeMathType = 1; |
| 292 | uint64_t workspaceSize = 0; | 292 | uint64_t workspaceSize = 0; |
| 293 | aclOpExecutor* executor; | 293 | aclOpExecutor* executor; |
| @@ -60,7 +60,7 @@ aclnnStatus aclnnCalculateMatmulWeightSizeV2( | |||
| 60 | 60 | ||
| 61 | - **参数说明:** | 61 | - **参数说明:** |
| 62 | 62 | ||
| 63 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 63 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 64 | <col style="width: 211px"> | 64 | <col style="width: 211px"> |
| 65 | <col style="width: 120px"> | 65 | <col style="width: 120px"> |
| 66 | <col style="width: 266px"> | 66 | <col style="width: 266px"> |
| @@ -119,7 +119,7 @@ aclnnStatus aclnnCalculateMatmulWeightSizeV2( | |||
| 119 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 119 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 120 | 120 | ||
| 121 | 第一段接口完成入参校验,出现以下场景时报错: | 121 | 第一段接口完成入参校验,出现以下场景时报错: |
| 122 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 122 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 123 | <col style="width: 291px"> | 123 | <col style="width: 291px"> |
| 124 | <col style="width: 135px"> | 124 | <col style="width: 135px"> |
| 125 | <col style="width: 724px"> | 125 | <col style="width: 724px"> |
| @@ -314,7 +314,7 @@ int main() { | |||
| 314 | ret = CreateAclTensor(yHostData, yShape, &yFp16DeviceAddr, aclDataType::ACL_FLOAT16, &yFp16); | 314 | ret = CreateAclTensor(yHostData, yShape, &yFp16DeviceAddr, aclDataType::ACL_FLOAT16, &yFp16); |
| 315 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 315 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 316 | 316 | ||
| 317 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 317 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 318 | uint64_t workspaceSize = 0; | 318 | uint64_t workspaceSize = 0; |
| 319 | aclOpExecutor* executor; | 319 | aclOpExecutor* executor; |
| 320 | void* workspaceAddr = nullptr; | 320 | void* workspaceAddr = nullptr; |
| @@ -131,7 +131,7 @@ aclnnStatus aclnnTransConvolutionWeight( | |||
| 131 | `aclnnStatus`:返回状态码,具体参见 <a href="../../../docs/zh/context/aclnn_return_code.md">aclnn返回码</a>。 | 131 | `aclnnStatus`:返回状态码,具体参见 <a href="../../../docs/zh/context/aclnn_return_code.md">aclnn返回码</a>。 |
| 132 | 132 | ||
| 133 | 第一段接口完成入参校验,出现以下场景时报错: | 133 | 第一段接口完成入参校验,出现以下场景时报错: |
| 134 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 134 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 135 | <col style="width: 291px"> | 135 | <col style="width: 291px"> |
| 136 | <col style="width: 135px"> | 136 | <col style="width: 135px"> |
| 137 | <col style="width: 724px"> | 137 | <col style="width: 724px"> |
| @@ -160,7 +160,7 @@ aclnnStatus aclnnTransConvolutionWeight( | |||
| 160 | 160 | ||
| 161 | - **参数说明:** | 161 | - **参数说明:** |
| 162 | 162 | ||
| 163 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 163 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 164 | <col style="width: 184px"> | 164 | <col style="width: 184px"> |
| 165 | <col style="width: 134px"> | 165 | <col style="width: 134px"> |
| 166 | <col style="width: 832px"> | 166 | <col style="width: 832px"> |
| @@ -49,7 +49,7 @@ aclnnStatus aclnnTransMatmulWeight( | |||
| 49 | ## aclnnTransMatmulWeightGetWorkspaceSize | 49 | ## aclnnTransMatmulWeightGetWorkspaceSize |
| 50 | 50 | ||
| 51 | - **参数说明** | 51 | - **参数说明** |
| 52 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 52 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 53 | <col style="width: 211px"> | 53 | <col style="width: 211px"> |
| 54 | <col style="width: 120px"> | 54 | <col style="width: 120px"> |
| 55 | <col style="width: 266px"> | 55 | <col style="width: 266px"> |
| @@ -117,7 +117,7 @@ aclnnStatus aclnnTransMatmulWeight( | |||
| 117 | 117 | ||
| 118 | 第一段接口完成入参校验,出现以下场景时报错: | 118 | 第一段接口完成入参校验,出现以下场景时报错: |
| 119 | 119 | ||
| 120 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 120 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 121 | <col style="width: 291px"> | 121 | <col style="width: 291px"> |
| 122 | <col style="width: 135px"> | 122 | <col style="width: 135px"> |
| 123 | <col style="width: 724px"> | 123 | <col style="width: 724px"> |
| @@ -154,7 +154,7 @@ aclnnStatus aclnnTransMatmulWeight( | |||
| 154 | ## aclnnTransMatmulWeight | 154 | ## aclnnTransMatmulWeight |
| 155 | 155 | ||
| 156 | - **参数说明** | 156 | - **参数说明** |
| 157 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 157 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 158 | <col style="width: 184px"> | 158 | <col style="width: 184px"> |
| 159 | <col style="width: 134px"> | 159 | <col style="width: 134px"> |
| 160 | <col style="width: 832px"> | 160 | <col style="width: 832px"> |
| @@ -354,7 +354,7 @@ int main() { | |||
| 354 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT16, &out); | 354 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT16, &out); |
| 355 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 355 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 356 | 356 | ||
| 357 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 357 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 358 | int8_t cubeMathType = 1; | 358 | int8_t cubeMathType = 1; |
| 359 | uint64_t workspaceSize = 0; | 359 | uint64_t workspaceSize = 0; |
| 360 | aclOpExecutor* executor; | 360 | aclOpExecutor* executor; |
| @@ -52,7 +52,7 @@ aclnnStatus aclnnChannelShuffle( | |||
| 52 | 52 | ||
| 53 | - **参数说明:** | 53 | - **参数说明:** |
| 54 | 54 | ||
| 55 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 55 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 56 | <col style="width: 211px"> | 56 | <col style="width: 211px"> |
| 57 | <col style="width: 120px"> | 57 | <col style="width: 120px"> |
| 58 | <col style="width: 266px"> | 58 | <col style="width: 266px"> |
| @@ -131,7 +131,7 @@ aclnnStatus aclnnChannelShuffle( | |||
| 131 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 131 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 132 | 132 | ||
| 133 | 第一段接口完成入参校验,出现以下场景时报错: | 133 | 第一段接口完成入参校验,出现以下场景时报错: |
| 134 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 134 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 135 | <col style="width: 291px"> | 135 | <col style="width: 291px"> |
| 136 | <col style="width: 135px"> | 136 | <col style="width: 135px"> |
| 137 | <col style="width: 724px"> | 137 | <col style="width: 724px"> |
| @@ -171,7 +171,7 @@ aclnnStatus aclnnChannelShuffle( | |||
| 171 | ## aclnnChannelShuffle | 171 | ## aclnnChannelShuffle |
| 172 | 172 | ||
| 173 | - **参数说明**: | 173 | - **参数说明**: |
| 174 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 174 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 175 | <col style="width: 184px"> | 175 | <col style="width: 184px"> |
| 176 | <col style="width: 134px"> | 176 | <col style="width: 134px"> |
| 177 | <col style="width: 832px"> | 177 | <col style="width: 832px"> |
| @@ -303,7 +303,7 @@ int main() { | |||
| 303 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 303 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 304 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 304 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 305 | 305 | ||
| 306 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 306 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 307 | int64_t groups = 2; | 307 | int64_t groups = 2; |
| 308 | uint64_t workspaceSize = 0; | 308 | uint64_t workspaceSize = 0; |
| 309 | aclOpExecutor* executor; | 309 | aclOpExecutor* executor; |
| @@ -52,7 +52,7 @@ aclnnStatus aclnnPermute( | |||
| 52 | 52 | ||
| 53 | - **参数说明** | 53 | - **参数说明** |
| 54 | 54 | ||
| 55 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 55 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 56 | <col style="width: 211px"> | 56 | <col style="width: 211px"> |
| 57 | <col style="width: 120px"> | 57 | <col style="width: 120px"> |
| 58 | <col style="width: 266px"> | 58 | <col style="width: 266px"> |
| @@ -138,7 +138,7 @@ aclnnStatus aclnnPermute( | |||
| 138 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 138 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 139 | 139 | ||
| 140 | 第一段接口完成入参校验,出现以下场景时报错: | 140 | 第一段接口完成入参校验,出现以下场景时报错: |
| 141 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 141 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 142 | <col style="width: 291px"> | 142 | <col style="width: 291px"> |
| 143 | <col style="width: 135px"> | 143 | <col style="width: 135px"> |
| 144 | <col style="width: 724px"> | 144 | <col style="width: 724px"> |
| @@ -176,7 +176,7 @@ aclnnStatus aclnnPermute( | |||
| 176 | 176 | ||
| 177 | - **参数说明** | 177 | - **参数说明** |
| 178 | 178 | ||
| 179 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 179 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 180 | <col style="width: 184px"> | 180 | <col style="width: 184px"> |
| 181 | <col style="width: 134px"> | 181 | <col style="width: 134px"> |
| 182 | <col style="width: 832px"> | 182 | <col style="width: 832px"> |
| @@ -311,7 +311,7 @@ int main() { | |||
| 311 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 311 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 312 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 312 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 313 | 313 | ||
| 314 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 314 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 315 | uint64_t workspaceSize = 0; | 315 | uint64_t workspaceSize = 0; |
| 316 | aclOpExecutor* executor; | 316 | aclOpExecutor* executor; |
| 317 | // 调用aclnnPermute第一段接口 | 317 | // 调用aclnnPermute第一段接口 |
| @@ -33,7 +33,7 @@ | |||
| 33 | 33 | ||
| 34 | ## 参数说明 | 34 | ## 参数说明 |
| 35 | 35 | ||
| 36 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 36 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 37 | <col style="width: 100px"> | 37 | <col style="width: 100px"> |
| 38 | <col style="width: 150px"> | 38 | <col style="width: 150px"> |
| 39 | <col style="width: 280px"> | 39 | <col style="width: 280px"> |
| @@ -86,7 +86,7 @@ aclnnStatus aclnnInplaceTril( | |||
| 86 | ## aclnnTrilGetWorkspaceSize | 86 | ## aclnnTrilGetWorkspaceSize |
| 87 | 87 | ||
| 88 | - **参数说明** | 88 | - **参数说明** |
| 89 | - <table style="undefined;table-layout: fixed; width: 1587px"><colgroup> | 89 | + <table style="table-layout: fixed; width: 1587px"><colgroup> |
| 90 | <col style="width: 159px"> | 90 | <col style="width: 159px"> |
| 91 | <col style="width: 127px"> | 91 | <col style="width: 127px"> |
| 92 | <col style="width: 230px"> | 92 | <col style="width: 230px"> |
| @@ -172,7 +172,7 @@ aclnnStatus aclnnInplaceTril( | |||
| 172 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 172 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 173 | 173 | ||
| 174 | 第一段接口完成入参校验,出现以下场景时报错: | 174 | 第一段接口完成入参校验,出现以下场景时报错: |
| 175 | - <table style="undefined;table-layout: fixed; width: 1154px"><colgroup> | 175 | + <table style="table-layout: fixed; width: 1154px"><colgroup> |
| 176 | <col style="width: 230px"> | 176 | <col style="width: 230px"> |
| 177 | <col style="width: 127px"> | 177 | <col style="width: 127px"> |
| 178 | <col style="width: 851px"> | 178 | <col style="width: 851px"> |
| @@ -215,7 +215,7 @@ aclnnStatus aclnnInplaceTril( | |||
| 215 | ## aclnnTril | 215 | ## aclnnTril |
| 216 | 216 | ||
| 217 | - **参数说明** | 217 | - **参数说明** |
| 218 | - <table style="undefined;table-layout: fixed; width: 1154px"><colgroup> | 218 | + <table style="table-layout: fixed; width: 1154px"><colgroup> |
| 219 | <col style="width: 230px"> | 219 | <col style="width: 230px"> |
| 220 | <col style="width: 127px"> | 220 | <col style="width: 127px"> |
| 221 | <col style="width: 851px"> | 221 | <col style="width: 851px"> |
| @@ -257,7 +257,7 @@ aclnnStatus aclnnInplaceTril( | |||
| 257 | ## aclnnInplaceTrilGetWorkspaceSize | 257 | ## aclnnInplaceTrilGetWorkspaceSize |
| 258 | 258 | ||
| 259 | - **参数说明** | 259 | - **参数说明** |
| 260 | - <table style="undefined;table-layout: fixed; width: 1587px"><colgroup> | 260 | + <table style="table-layout: fixed; width: 1587px"><colgroup> |
| 261 | <col style="width: 159px"> | 261 | <col style="width: 159px"> |
| 262 | <col style="width: 127px"> | 262 | <col style="width: 127px"> |
| 263 | <col style="width: 230px"> | 263 | <col style="width: 230px"> |
| @@ -333,7 +333,7 @@ aclnnStatus aclnnInplaceTril( | |||
| 333 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 333 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 334 | 334 | ||
| 335 | 第一段接口完成入参校验,出现以下场景时报错: | 335 | 第一段接口完成入参校验,出现以下场景时报错: |
| 336 | - <table style="undefined;table-layout: fixed; width: 1154px"><colgroup> | 336 | + <table style="table-layout: fixed; width: 1154px"><colgroup> |
| 337 | <col style="width: 230px"> | 337 | <col style="width: 230px"> |
| 338 | <col style="width: 127px"> | 338 | <col style="width: 127px"> |
| 339 | <col style="width: 851px"> | 339 | <col style="width: 851px"> |
| @@ -364,7 +364,7 @@ aclnnStatus aclnnInplaceTril( | |||
| 364 | ## aclnnInplaceTril | 364 | ## aclnnInplaceTril |
| 365 | 365 | ||
| 366 | - **参数说明** | 366 | - **参数说明** |
| 367 | - <table style="undefined;table-layout: fixed; width: 1154px"><colgroup> | 367 | + <table style="table-layout: fixed; width: 1154px"><colgroup> |
| 368 | <col style="width: 230px"> | 368 | <col style="width: 230px"> |
| 369 | <col style="width: 127px"> | 369 | <col style="width: 127px"> |
| 370 | <col style="width: 851px"> | 370 | <col style="width: 851px"> |
| @@ -27,7 +27,7 @@ $$ | |||
| 27 | 27 | ||
| 28 | ## 参数说明 | 28 | ## 参数说明 |
| 29 | 29 | ||
| 30 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 30 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 31 | <col style="width: 100px"> | 31 | <col style="width: 100px"> |
| 32 | <col style="width: 150px"> | 32 | <col style="width: 150px"> |
| 33 | <col style="width: 280px"> | 33 | <col style="width: 280px"> |
| @@ -33,7 +33,7 @@ | |||
| 33 | 33 | ||
| 34 | ## 参数说明 | 34 | ## 参数说明 |
| 35 | 35 | ||
| 36 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 36 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 37 | <col style="width: 100px"> | 37 | <col style="width: 100px"> |
| 38 | <col style="width: 150px"> | 38 | <col style="width: 150px"> |
| 39 | <col style="width: 280px"> | 39 | <col style="width: 280px"> |
| @@ -86,7 +86,7 @@ aclnnStatus aclnnInplaceTriu( | |||
| 86 | ## aclnnTriuGetWorkspaceSize | 86 | ## aclnnTriuGetWorkspaceSize |
| 87 | 87 | ||
| 88 | - **参数说明** | 88 | - **参数说明** |
| 89 | - <table style="undefined;table-layout: fixed; width: 1587px"><colgroup> | 89 | + <table style="table-layout: fixed; width: 1587px"><colgroup> |
| 90 | <col style="width: 159px"> | 90 | <col style="width: 159px"> |
| 91 | <col style="width: 127px"> | 91 | <col style="width: 127px"> |
| 92 | <col style="width: 230px"> | 92 | <col style="width: 230px"> |
| @@ -172,7 +172,7 @@ aclnnStatus aclnnInplaceTriu( | |||
| 172 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 172 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 173 | 173 | ||
| 174 | 第一段接口完成入参校验,出现以下场景时报错: | 174 | 第一段接口完成入参校验,出现以下场景时报错: |
| 175 | - <table style="undefined;table-layout: fixed; width: 1154px"><colgroup> | 175 | + <table style="table-layout: fixed; width: 1154px"><colgroup> |
| 176 | <col style="width: 230px"> | 176 | <col style="width: 230px"> |
| 177 | <col style="width: 127px"> | 177 | <col style="width: 127px"> |
| 178 | <col style="width: 851px"> | 178 | <col style="width: 851px"> |
| @@ -216,7 +216,7 @@ aclnnStatus aclnnInplaceTriu( | |||
| 216 | 216 | ||
| 217 | - **参数说明** | 217 | - **参数说明** |
| 218 | 218 | ||
| 219 | - <table style="undefined;table-layout: fixed; width: 1154px"><colgroup> | 219 | + <table style="table-layout: fixed; width: 1154px"><colgroup> |
| 220 | <col style="width: 230px"> | 220 | <col style="width: 230px"> |
| 221 | <col style="width: 127px"> | 221 | <col style="width: 127px"> |
| 222 | <col style="width: 851px"> | 222 | <col style="width: 851px"> |
| @@ -259,7 +259,7 @@ aclnnStatus aclnnInplaceTriu( | |||
| 259 | 259 | ||
| 260 | - **参数说明** | 260 | - **参数说明** |
| 261 | 261 | ||
| 262 | - <table style="undefined;table-layout: fixed; width: 1587px"><colgroup> | 262 | + <table style="table-layout: fixed; width: 1587px"><colgroup> |
| 263 | <col style="width: 159px"> | 263 | <col style="width: 159px"> |
| 264 | <col style="width: 127px"> | 264 | <col style="width: 127px"> |
| 265 | <col style="width: 230px"> | 265 | <col style="width: 230px"> |
| @@ -335,7 +335,7 @@ aclnnStatus aclnnInplaceTriu( | |||
| 335 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 335 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 336 | 336 | ||
| 337 | 第一段接口完成入参校验,出现以下场景时报错: | 337 | 第一段接口完成入参校验,出现以下场景时报错: |
| 338 | - <table style="undefined;table-layout: fixed; width: 1154px"><colgroup> | 338 | + <table style="table-layout: fixed; width: 1154px"><colgroup> |
| 339 | <col style="width: 230px"> | 339 | <col style="width: 230px"> |
| 340 | <col style="width: 127px"> | 340 | <col style="width: 127px"> |
| 341 | <col style="width: 851px"> | 341 | <col style="width: 851px"> |
| @@ -370,7 +370,7 @@ aclnnStatus aclnnInplaceTriu( | |||
| 370 | 370 | ||
| 371 | - **参数说明** | 371 | - **参数说明** |
| 372 | 372 | ||
| 373 | - <table style="undefined;table-layout: fixed; width: 1154px"><colgroup> | 373 | + <table style="table-layout: fixed; width: 1154px"><colgroup> |
| 374 | <col style="width: 230px"> | 374 | <col style="width: 230px"> |
| 375 | <col style="width: 127px"> | 375 | <col style="width: 127px"> |
| 376 | <col style="width: 851px"> | 376 | <col style="width: 851px"> |
| @@ -80,7 +80,7 @@ aclnnStatus aclnnUnfoldGrad( | |||
| 80 | 80 | ||
| 81 | - **参数说明:** | 81 | - **参数说明:** |
| 82 | 82 | ||
| 83 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 83 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 84 | <col style="width: 211px"> | 84 | <col style="width: 211px"> |
| 85 | <col style="width: 120px"> | 85 | <col style="width: 120px"> |
| 86 | <col style="width: 200px"> | 86 | <col style="width: 200px"> |
| @@ -189,7 +189,7 @@ aclnnStatus aclnnUnfoldGrad( | |||
| 189 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 189 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 190 | 190 | ||
| 191 | 第一段接口完成入参校验,出现以下场景时报错: | 191 | 第一段接口完成入参校验,出现以下场景时报错: |
| 192 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 192 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 193 | <col style="width: 291px"> | 193 | <col style="width: 291px"> |
| 194 | <col style="width: 135px"> | 194 | <col style="width: 135px"> |
| 195 | <col style="width: 724px"> | 195 | <col style="width: 724px"> |
| @@ -240,7 +240,7 @@ aclnnStatus aclnnUnfoldGrad( | |||
| 240 | ## aclnnUnfoldGrad | 240 | ## aclnnUnfoldGrad |
| 241 | 241 | ||
| 242 | - **参数说明**: | 242 | - **参数说明**: |
| 243 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 243 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 244 | <col style="width: 184px"> | 244 | <col style="width: 184px"> |
| 245 | <col style="width: 134px"> | 245 | <col style="width: 134px"> |
| 246 | <col style="width: 832px"> | 246 | <col style="width: 832px"> |
| @@ -389,7 +389,7 @@ int main() { | |||
| 389 | auto inputSizes = aclCreateIntArray(inputSizesData.data(), 2); | 389 | auto inputSizes = aclCreateIntArray(inputSizesData.data(), 2); |
| 390 | CHECK_RET(inputSizes != nullptr, return ret); | 390 | CHECK_RET(inputSizes != nullptr, return ret); |
| 391 | 391 | ||
| 392 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 392 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 393 | uint64_t workspaceSize = 0; | 393 | uint64_t workspaceSize = 0; |
| 394 | aclOpExecutor* executor; | 394 | aclOpExecutor* executor; |
| 395 | // 调用aclnnUnfoldGrad第一段接口 | 395 | // 调用aclnnUnfoldGrad第一段接口 |
| @@ -17,7 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 21 | <col style="width: 100px"> | 21 | <col style="width: 100px"> |
| 22 | <col style="width: 150px"> | 22 | <col style="width: 150px"> |
| 23 | <col style="width: 280px"> | 23 | <col style="width: 280px"> |
| @@ -70,7 +70,7 @@ aclnnStatus aclnnInplaceCopy( | |||
| 70 | 70 | ||
| 71 | - **参数说明**: | 71 | - **参数说明**: |
| 72 | 72 | ||
| 73 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 73 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 74 | <col style="width: 211px"> | 74 | <col style="width: 211px"> |
| 75 | <col style="width: 120px"> | 75 | <col style="width: 120px"> |
| 76 | <col style="width: 266px"> | 76 | <col style="width: 266px"> |
| @@ -139,7 +139,7 @@ aclnnStatus aclnnInplaceCopy( | |||
| 139 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 139 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 140 | 140 | ||
| 141 | 第一段接口完成入参校验,出现以下场景时报错: | 141 | 第一段接口完成入参校验,出现以下场景时报错: |
| 142 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 142 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 143 | <col style="width: 291px"> | 143 | <col style="width: 291px"> |
| 144 | <col style="width: 135px"> | 144 | <col style="width: 135px"> |
| 145 | <col style="width: 724px"> | 145 | <col style="width: 724px"> |
| @@ -176,7 +176,7 @@ aclnnStatus aclnnInplaceCopy( | |||
| 176 | ## aclnnInplaceCopy | 176 | ## aclnnInplaceCopy |
| 177 | 177 | ||
| 178 | - **参数说明**: | 178 | - **参数说明**: |
| 179 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 179 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 180 | <col style="width: 184px"> | 180 | <col style="width: 184px"> |
| 181 | <col style="width: 134px"> | 181 | <col style="width: 134px"> |
| 182 | <col style="width: 832px"> | 182 | <col style="width: 832px"> |
| @@ -65,7 +65,7 @@ aclnnStatus aclnnWeightQuantPreprocess( | |||
| 65 | 65 | ||
| 66 | - **参数说明** | 66 | - **参数说明** |
| 67 | 67 | ||
| 68 | - <table style="undefined;table-layout: fixed; width: 1195px"><colgroup> | 68 | + <table style="table-layout: fixed; width: 1195px"><colgroup> |
| 69 | <col style="width: 220px"> | 69 | <col style="width: 220px"> |
| 70 | <col style="width: 90px"> | 70 | <col style="width: 90px"> |
| 71 | <col style="width: 160px"> | 71 | <col style="width: 160px"> |
| @@ -226,7 +226,7 @@ aclnnStatus aclnnWeightQuantPreprocess( | |||
| 226 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 | 226 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../docs/zh/context/aclnn_return_code.md)。 |
| 227 | 227 | ||
| 228 | 第一段接口完成入参校验,出现以下场景时报错: | 228 | 第一段接口完成入参校验,出现以下场景时报错: |
| 229 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 229 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 230 | <col style="width: 291px"> | 230 | <col style="width: 291px"> |
| 231 | <col style="width: 135px"> | 231 | <col style="width: 135px"> |
| 232 | <col style="width: 724px"> | 232 | <col style="width: 724px"> |
| @@ -13,7 +13,7 @@ broadcast(广播)描述了算子在运算期间如何处理不同形状的 | |||
| 13 | - 规则1:如果数组间维度数不一致,所有数组向最长形状的数组看齐,形状不足的部分在**左侧**填充1,直至维度数相同。 | 13 | - 规则1:如果数组间维度数不一致,所有数组向最长形状的数组看齐,形状不足的部分在**左侧**填充1,直至维度数相同。 |
| 14 | 14 | ||
| 15 | > 说明: | 15 | > 说明: |
| 16 | - > - 举例1:维度数(Number of Dimensions)是指张量(或数组)对应shape的维数,比如x.shape=(1,1,2,4),维度数是4 。 | 16 | + > - 举例1:维度数(Number of Dimensions)是指张量(或数组)对应shape的维数,比如x.shape=(1,1,2,4),维度数是4。 |
| 17 | > - 举例2:比如计算a+b,其中a.shape=(2, 2, 3)、b.shape=(2, 3),那么数组b将被broadcast为b.shape=(1, 2, 3)。 | 17 | > - 举例2:比如计算a+b,其中a.shape=(2, 2, 3)、b.shape=(2, 3),那么数组b将被broadcast为b.shape=(1, 2, 3)。 |
| 18 | 18 | ||
| 19 | - 规则2:如果数组间维度数一致,且某个数组的某一维度为1,则该维度为1的数组将被拉伸以匹配另一个数组对应维度形状。 | 19 | - 规则2:如果数组间维度数一致,且某个数组的某一维度为1,则该维度为1的数组将被拉伸以匹配另一个数组对应维度形状。 |
| @@ -201,7 +201,7 @@ | |||
| 201 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 201 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 202 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 202 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 203 | 203 | ||
| 204 | - // 3.调用CANN算子库API,需要修改为具体的Api名称 | 204 | + // 3.调用CANN算子库API,需要修改为具体的API名称 |
| 205 | uint64_t workspaceSize = 0; | 205 | uint64_t workspaceSize = 0; |
| 206 | aclOpExecutor* executor; | 206 | aclOpExecutor* executor; |
| 207 | 207 | ||
| @@ -20,7 +20,7 @@ $$ | |||
| 20 | 20 | ||
| 21 | ## 参数说明 | 21 | ## 参数说明 |
| 22 | 22 | ||
| 23 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 23 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 24 | <col style="width: 100px"> | 24 | <col style="width: 100px"> |
| 25 | <col style="width: 150px"> | 25 | <col style="width: 150px"> |
| 26 | <col style="width: 280px"> | 26 | <col style="width: 280px"> |
| @@ -19,7 +19,7 @@ $$ | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 23 | <col style="width: 100px"> | 23 | <col style="width: 100px"> |
| 24 | <col style="width: 150px"> | 24 | <col style="width: 150px"> |
| 25 | <col style="width: 280px"> | 25 | <col style="width: 280px"> |
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | ## 参数说明 | 26 | ## 参数说明 |
| 27 | 27 | ||
| 28 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 28 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 29 | <col style="width: 140px"> | 29 | <col style="width: 140px"> |
| 30 | <col style="width: 140px"> | 30 | <col style="width: 140px"> |
| 31 | <col style="width: 280px"> | 31 | <col style="width: 280px"> |
| @@ -48,7 +48,7 @@ aclnnStatus aclnnAsStrided( | |||
| 48 | 48 | ||
| 49 | - **参数说明** | 49 | - **参数说明** |
| 50 | 50 | ||
| 51 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 51 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 52 | <col style="width: 180px"> | 52 | <col style="width: 180px"> |
| 53 | <col style="width: 120px"> | 53 | <col style="width: 120px"> |
| 54 | <col style="width: 245px"> | 54 | <col style="width: 245px"> |
| @@ -149,7 +149,7 @@ aclnnStatus aclnnAsStrided( | |||
| 149 | 149 | ||
| 150 | 第一段接口完成入参校验,出现以下场景时报错: | 150 | 第一段接口完成入参校验,出现以下场景时报错: |
| 151 | 151 | ||
| 152 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 152 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 153 | <col style="width: 291px"> | 153 | <col style="width: 291px"> |
| 154 | <col style="width: 135px"> | 154 | <col style="width: 135px"> |
| 155 | <col style="width: 724px"> | 155 | <col style="width: 724px"> |
| @@ -193,7 +193,7 @@ aclnnStatus aclnnAsStrided( | |||
| 193 | 193 | ||
| 194 | - **参数说明** | 194 | - **参数说明** |
| 195 | 195 | ||
| 196 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 196 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 197 | <col style="width: 184px"> | 197 | <col style="width: 184px"> |
| 198 | <col style="width: 134px"> | 198 | <col style="width: 134px"> |
| 199 | <col style="width: 832px"> | 199 | <col style="width: 832px"> |
| @@ -42,7 +42,7 @@ aclnnStatus aclnnClamp( | |||
| 42 | 42 | ||
| 43 | - **参数说明** | 43 | - **参数说明** |
| 44 | 44 | ||
| 45 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 45 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 46 | <col style="width: 211px"> | 46 | <col style="width: 211px"> |
| 47 | <col style="width: 120px"> | 47 | <col style="width: 120px"> |
| 48 | <col style="width: 266px"> | 48 | <col style="width: 266px"> |
| @@ -135,7 +135,7 @@ aclnnStatus aclnnClamp( | |||
| 135 | 135 | ||
| 136 | 第一段接口完成入参校验,出现以下场景时报错: | 136 | 第一段接口完成入参校验,出现以下场景时报错: |
| 137 | 137 | ||
| 138 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 138 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 139 | <col style="width: 291px"> | 139 | <col style="width: 291px"> |
| 140 | <col style="width: 135px"> | 140 | <col style="width: 135px"> |
| 141 | <col style="width: 724px"> | 141 | <col style="width: 724px"> |
| @@ -163,7 +163,7 @@ aclnnStatus aclnnClamp( | |||
| 163 | ## aclnnClamp | 163 | ## aclnnClamp |
| 164 | 164 | ||
| 165 | - **参数说明** | 165 | - **参数说明** |
| 166 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 166 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 167 | <col style="width: 184px"> | 167 | <col style="width: 184px"> |
| 168 | <col style="width: 134px"> | 168 | <col style="width: 134px"> |
| 169 | <col style="width: 832px"> | 169 | <col style="width: 832px"> |
| @@ -62,7 +62,7 @@ aclnnStatus aclnnInplaceClampMax( | |||
| 62 | 62 | ||
| 63 | - **参数说明:** | 63 | - **参数说明:** |
| 64 | 64 | ||
| 65 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 65 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 66 | <col style="width: 211px"> | 66 | <col style="width: 211px"> |
| 67 | <col style="width: 120px"> | 67 | <col style="width: 120px"> |
| 68 | <col style="width: 266px"> | 68 | <col style="width: 266px"> |
| @@ -147,7 +147,7 @@ aclnnStatus aclnnInplaceClampMax( | |||
| 147 | 147 | ||
| 148 | 第一段接口完成入参校验,出现以下场景时报错: | 148 | 第一段接口完成入参校验,出现以下场景时报错: |
| 149 | 149 | ||
| 150 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 150 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 151 | <col style="width: 291px"> | 151 | <col style="width: 291px"> |
| 152 | <col style="width: 135px"> | 152 | <col style="width: 135px"> |
| 153 | <col style="width: 724px"> | 153 | <col style="width: 724px"> |
| @@ -184,7 +184,7 @@ aclnnStatus aclnnInplaceClampMax( | |||
| 184 | ## aclnnClampMax | 184 | ## aclnnClampMax |
| 185 | 185 | ||
| 186 | - **参数说明** | 186 | - **参数说明** |
| 187 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 187 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 188 | <col style="width: 184px"> | 188 | <col style="width: 184px"> |
| 189 | <col style="width: 134px"> | 189 | <col style="width: 134px"> |
| 190 | <col style="width: 832px"> | 190 | <col style="width: 832px"> |
| @@ -227,7 +227,7 @@ aclnnStatus aclnnInplaceClampMax( | |||
| 227 | 227 | ||
| 228 | - **参数说明:** | 228 | - **参数说明:** |
| 229 | 229 | ||
| 230 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 230 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 231 | <col style="width: 211px"> | 231 | <col style="width: 211px"> |
| 232 | <col style="width: 120px"> | 232 | <col style="width: 120px"> |
| 233 | <col style="width: 266px"> | 233 | <col style="width: 266px"> |
| @@ -305,7 +305,7 @@ aclnnStatus aclnnInplaceClampMax( | |||
| 305 | 305 | ||
| 306 | 第一段接口完成入参校验,出现以下场景时报错: | 306 | 第一段接口完成入参校验,出现以下场景时报错: |
| 307 | 307 | ||
| 308 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 308 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 309 | <col style="width: 291px"> | 309 | <col style="width: 291px"> |
| 310 | <col style="width: 135px"> | 310 | <col style="width: 135px"> |
| 311 | <col style="width: 724px"> | 311 | <col style="width: 724px"> |
| @@ -333,7 +333,7 @@ aclnnStatus aclnnInplaceClampMax( | |||
| 333 | ## aclnnInplaceClampMax | 333 | ## aclnnInplaceClampMax |
| 334 | 334 | ||
| 335 | - **参数说明** | 335 | - **参数说明** |
| 336 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 336 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 337 | <col style="width: 184px"> | 337 | <col style="width: 184px"> |
| 338 | <col style="width: 134px"> | 338 | <col style="width: 134px"> |
| 339 | <col style="width: 832px"> | 339 | <col style="width: 832px"> |
| @@ -503,7 +503,7 @@ int main() { | |||
| 503 | ret = PrepareInputAndOutput(selfShape, outShape, &selfDeviceAddr, &self, &max, &outDeviceAddr, &out); | 503 | ret = PrepareInputAndOutput(selfShape, outShape, &selfDeviceAddr, &self, &max, &outDeviceAddr, &out); |
| 504 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 504 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 505 | 505 | ||
| 506 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 506 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 507 | uint64_t workspaceSize = 0; | 507 | uint64_t workspaceSize = 0; |
| 508 | aclOpExecutor* executor; | 508 | aclOpExecutor* executor; |
| 509 | // 调用aclnnClampMax第一段接口 | 509 | // 调用aclnnClampMax第一段接口 |
| @@ -657,7 +657,7 @@ int main() { | |||
| 657 | ret = PrepareInputAndOutput(selfShape, &selfDeviceAddr, &self, &max); | 657 | ret = PrepareInputAndOutput(selfShape, &selfDeviceAddr, &self, &max); |
| 658 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 658 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 659 | 659 | ||
| 660 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 660 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 661 | uint64_t workspaceSize = 0; | 661 | uint64_t workspaceSize = 0; |
| 662 | aclOpExecutor* executor; | 662 | aclOpExecutor* executor; |
| 663 | // 调用aclnnInplaceClampMax第一段接口 | 663 | // 调用aclnnInplaceClampMax第一段接口 |
Mexperimental/conversion/clip_by_value_v2/docs/aclnnClampMaxTensor&aclnnInplaceClampMaxTensor.md+8-8
| @@ -60,7 +60,7 @@ aclnnStatus aclnnInplaceClampMaxTensor( | |||
| 60 | 60 | ||
| 61 | - **参数说明:** | 61 | - **参数说明:** |
| 62 | 62 | ||
| 63 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 63 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 64 | <col style="width: 211px"> | 64 | <col style="width: 211px"> |
| 65 | <col style="width: 120px"> | 65 | <col style="width: 120px"> |
| 66 | <col style="width: 266px"> | 66 | <col style="width: 266px"> |
| @@ -143,7 +143,7 @@ aclnnStatus aclnnInplaceClampMaxTensor( | |||
| 143 | 143 | ||
| 144 | 第一段接口完成入参校验,出现以下场景时报错: | 144 | 第一段接口完成入参校验,出现以下场景时报错: |
| 145 | 145 | ||
| 146 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 146 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 147 | <col style="width: 291px"> | 147 | <col style="width: 291px"> |
| 148 | <col style="width: 135px"> | 148 | <col style="width: 135px"> |
| 149 | <col style="width: 724px"> | 149 | <col style="width: 724px"> |
| @@ -180,7 +180,7 @@ aclnnStatus aclnnInplaceClampMaxTensor( | |||
| 180 | ## aclnnClampMaxTensor | 180 | ## aclnnClampMaxTensor |
| 181 | 181 | ||
| 182 | - **参数说明** | 182 | - **参数说明** |
| 183 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 183 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 184 | <col style="width: 184px"> | 184 | <col style="width: 184px"> |
| 185 | <col style="width: 134px"> | 185 | <col style="width: 134px"> |
| 186 | <col style="width: 832px"> | 186 | <col style="width: 832px"> |
| @@ -223,7 +223,7 @@ aclnnStatus aclnnInplaceClampMaxTensor( | |||
| 223 | 223 | ||
| 224 | - **参数说明:** | 224 | - **参数说明:** |
| 225 | 225 | ||
| 226 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 226 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 227 | <col style="width: 211px"> | 227 | <col style="width: 211px"> |
| 228 | <col style="width: 120px"> | 228 | <col style="width: 120px"> |
| 229 | <col style="width: 266px"> | 229 | <col style="width: 266px"> |
| @@ -301,7 +301,7 @@ aclnnStatus aclnnInplaceClampMaxTensor( | |||
| 301 | 301 | ||
| 302 | 第一段接口完成入参校验,出现以下场景时报错: | 302 | 第一段接口完成入参校验,出现以下场景时报错: |
| 303 | 303 | ||
| 304 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 304 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 305 | <col style="width: 291px"> | 305 | <col style="width: 291px"> |
| 306 | <col style="width: 135px"> | 306 | <col style="width: 135px"> |
| 307 | <col style="width: 724px"> | 307 | <col style="width: 724px"> |
| @@ -341,7 +341,7 @@ aclnnStatus aclnnInplaceClampMaxTensor( | |||
| 341 | ## aclnnInplaceClampMaxTensor | 341 | ## aclnnInplaceClampMaxTensor |
| 342 | 342 | ||
| 343 | - **参数说明** | 343 | - **参数说明** |
| 344 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 344 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 345 | <col style="width: 184px"> | 345 | <col style="width: 184px"> |
| 346 | <col style="width: 134px"> | 346 | <col style="width: 134px"> |
| 347 | <col style="width: 832px"> | 347 | <col style="width: 832px"> |
| @@ -518,7 +518,7 @@ int main() { | |||
| 518 | selfShape, maxShape, outShape, &selfDeviceAddr, &self, &maxDeviceAddr, &max, &outDeviceAddr, &out); | 518 | selfShape, maxShape, outShape, &selfDeviceAddr, &self, &maxDeviceAddr, &max, &outDeviceAddr, &out); |
| 519 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 519 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 520 | 520 | ||
| 521 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 521 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 522 | uint64_t workspaceSize = 0; | 522 | uint64_t workspaceSize = 0; |
| 523 | aclOpExecutor* executor; | 523 | aclOpExecutor* executor; |
| 524 | // 调用aclnnClampMaxTensor第一段接口 | 524 | // 调用aclnnClampMaxTensor第一段接口 |
| @@ -675,7 +675,7 @@ int main() { | |||
| 675 | ret = PrepareInputAndOutput(selfShape, maxShape, &selfDeviceAddr, &self, &maxDeviceAddr, &max); | 675 | ret = PrepareInputAndOutput(selfShape, maxShape, &selfDeviceAddr, &self, &maxDeviceAddr, &max); |
| 676 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 676 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 677 | 677 | ||
| 678 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 678 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 679 | uint64_t workspaceSize = 0; | 679 | uint64_t workspaceSize = 0; |
| 680 | aclOpExecutor* executor; | 680 | aclOpExecutor* executor; |
| 681 | // 调用aclnnInplaceClampMaxTensor第一段接口 | 681 | // 调用aclnnInplaceClampMaxTensor第一段接口 |
| @@ -41,7 +41,7 @@ aclnnStatus aclnnClampMin( | |||
| 41 | 41 | ||
| 42 | - **参数说明:** | 42 | - **参数说明:** |
| 43 | 43 | ||
| 44 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 44 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 45 | <col style="width: 211px"> | 45 | <col style="width: 211px"> |
| 46 | <col style="width: 120px"> | 46 | <col style="width: 120px"> |
| 47 | <col style="width: 266px"> | 47 | <col style="width: 266px"> |
| @@ -124,7 +124,7 @@ aclnnStatus aclnnClampMin( | |||
| 124 | 124 | ||
| 125 | 第一段接口完成入参校验,出现以下场景时报错: | 125 | 第一段接口完成入参校验,出现以下场景时报错: |
| 126 | 126 | ||
| 127 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 127 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 128 | <col style="width: 291px"> | 128 | <col style="width: 291px"> |
| 129 | <col style="width: 135px"> | 129 | <col style="width: 135px"> |
| 130 | <col style="width: 724px"> | 130 | <col style="width: 724px"> |
| @@ -152,7 +152,7 @@ aclnnStatus aclnnClampMin( | |||
| 152 | ## aclnnClampMin | 152 | ## aclnnClampMin |
| 153 | 153 | ||
| 154 | - **参数说明** | 154 | - **参数说明** |
| 155 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 155 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 156 | <col style="width: 184px"> | 156 | <col style="width: 184px"> |
| 157 | <col style="width: 134px"> | 157 | <col style="width: 134px"> |
| 158 | <col style="width: 832px"> | 158 | <col style="width: 832px"> |
Mexperimental/conversion/clip_by_value_v2/docs/aclnnClampMinTensor&aclnnInplaceClampMinTensor.md+6-6
| @@ -61,7 +61,7 @@ aclnnStatus aclnnInplaceClampMinTensor( | |||
| 61 | 61 | ||
| 62 | - **参数说明**: | 62 | - **参数说明**: |
| 63 | 63 | ||
| 64 | - <table style="undefined;table-layout: fixed; width: 1600px"><colgroup> | 64 | + <table style="table-layout: fixed; width: 1600px"><colgroup> |
| 65 | <col style="width: 211px"> | 65 | <col style="width: 211px"> |
| 66 | <col style="width: 120px"> | 66 | <col style="width: 120px"> |
| 67 | <col style="width: 266px"> | 67 | <col style="width: 266px"> |
| @@ -144,7 +144,7 @@ aclnnStatus aclnnInplaceClampMinTensor( | |||
| 144 | 144 | ||
| 145 | 第一段接口完成入参校验,出现以下场景时报错: | 145 | 第一段接口完成入参校验,出现以下场景时报错: |
| 146 | 146 | ||
| 147 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 147 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 148 | <col style="width: 291px"> | 148 | <col style="width: 291px"> |
| 149 | <col style="width: 135px"> | 149 | <col style="width: 135px"> |
| 150 | <col style="width: 724px"> | 150 | <col style="width: 724px"> |
| @@ -175,7 +175,7 @@ aclnnStatus aclnnInplaceClampMinTensor( | |||
| 175 | ## aclnnClampMinTensor | 175 | ## aclnnClampMinTensor |
| 176 | 176 | ||
| 177 | - **参数说明** | 177 | - **参数说明** |
| 178 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 178 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 179 | <col style="width: 184px"> | 179 | <col style="width: 184px"> |
| 180 | <col style="width: 134px"> | 180 | <col style="width: 134px"> |
| 181 | <col style="width: 832px"> | 181 | <col style="width: 832px"> |
| @@ -218,7 +218,7 @@ aclnnStatus aclnnInplaceClampMinTensor( | |||
| 218 | 218 | ||
| 219 | - **参数说明:** | 219 | - **参数说明:** |
| 220 | 220 | ||
| 221 | - <table style="undefined;table-layout: fixed; width: 1600px"><colgroup> | 221 | + <table style="table-layout: fixed; width: 1600px"><colgroup> |
| 222 | <col style="width: 211px"> | 222 | <col style="width: 211px"> |
| 223 | <col style="width: 120px"> | 223 | <col style="width: 120px"> |
| 224 | <col style="width: 266px"> | 224 | <col style="width: 266px"> |
| @@ -296,7 +296,7 @@ aclnnStatus aclnnInplaceClampMinTensor( | |||
| 296 | 296 | ||
| 297 | 第一段接口完成入参校验,出现以下场景时报错: | 297 | 第一段接口完成入参校验,出现以下场景时报错: |
| 298 | 298 | ||
| 299 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 299 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 300 | <col style="width: 291px"> | 300 | <col style="width: 291px"> |
| 301 | <col style="width: 135px"> | 301 | <col style="width: 135px"> |
| 302 | <col style="width: 724px"> | 302 | <col style="width: 724px"> |
| @@ -333,7 +333,7 @@ aclnnStatus aclnnInplaceClampMinTensor( | |||
| 333 | ## aclnnInplaceClampMinTensor | 333 | ## aclnnInplaceClampMinTensor |
| 334 | 334 | ||
| 335 | - **参数说明** | 335 | - **参数说明** |
| 336 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 336 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 337 | <col style="width: 184px"> | 337 | <col style="width: 184px"> |
| 338 | <col style="width: 134px"> | 338 | <col style="width: 134px"> |
| 339 | <col style="width: 832px"> | 339 | <col style="width: 832px"> |
| @@ -42,7 +42,7 @@ aclnnStatus aclnnClampTensor( | |||
| 42 | 42 | ||
| 43 | - **参数说明:** | 43 | - **参数说明:** |
| 44 | 44 | ||
| 45 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 45 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 46 | <col style="width: 211px"> | 46 | <col style="width: 211px"> |
| 47 | <col style="width: 120px"> | 47 | <col style="width: 120px"> |
| 48 | <col style="width: 266px"> | 48 | <col style="width: 266px"> |
| @@ -132,7 +132,7 @@ aclnnStatus aclnnClampTensor( | |||
| 132 | 132 | ||
| 133 | 第一段接口完成入参校验,出现以下场景时报错: | 133 | 第一段接口完成入参校验,出现以下场景时报错: |
| 134 | 134 | ||
| 135 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 135 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 136 | <col style="width: 291px"> | 136 | <col style="width: 291px"> |
| 137 | <col style="width: 135px"> | 137 | <col style="width: 135px"> |
| 138 | <col style="width: 724px"> | 138 | <col style="width: 724px"> |
| @@ -169,7 +169,7 @@ aclnnStatus aclnnClampTensor( | |||
| 169 | ## aclnnClampTensor | 169 | ## aclnnClampTensor |
| 170 | 170 | ||
| 171 | - **参数说明** | 171 | - **参数说明** |
| 172 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 172 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 173 | <col style="width: 184px"> | 173 | <col style="width: 184px"> |
| 174 | <col style="width: 134px"> | 174 | <col style="width: 134px"> |
| 175 | <col style="width: 832px"> | 175 | <col style="width: 832px"> |
| @@ -64,7 +64,7 @@ aclnnStatus aclnnInplaceHardtanh( | |||
| 64 | 64 | ||
| 65 | - **参数说明** | 65 | - **参数说明** |
| 66 | 66 | ||
| 67 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 67 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 68 | <col style="width: 211px"> | 68 | <col style="width: 211px"> |
| 69 | <col style="width: 120px"> | 69 | <col style="width: 120px"> |
| 70 | <col style="width: 266px"> | 70 | <col style="width: 266px"> |
| @@ -154,7 +154,7 @@ aclnnStatus aclnnInplaceHardtanh( | |||
| 154 | 154 | ||
| 155 | 第一段接口完成入参校验,出现以下场景时报错: | 155 | 第一段接口完成入参校验,出现以下场景时报错: |
| 156 | 156 | ||
| 157 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 157 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 158 | <col style="width: 291px"> | 158 | <col style="width: 291px"> |
| 159 | <col style="width: 135px"> | 159 | <col style="width: 135px"> |
| 160 | <col style="width: 724px"> | 160 | <col style="width: 724px"> |
| @@ -191,7 +191,7 @@ aclnnStatus aclnnInplaceHardtanh( | |||
| 191 | ## aclnnHardtanh | 191 | ## aclnnHardtanh |
| 192 | 192 | ||
| 193 | - **参数说明**: | 193 | - **参数说明**: |
| 194 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 194 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 195 | <col style="width: 184px"> | 195 | <col style="width: 184px"> |
| 196 | <col style="width: 134px"> | 196 | <col style="width: 134px"> |
| 197 | <col style="width: 832px"> | 197 | <col style="width: 832px"> |
| @@ -234,7 +234,7 @@ aclnnStatus aclnnInplaceHardtanh( | |||
| 234 | 234 | ||
| 235 | - **参数说明** | 235 | - **参数说明** |
| 236 | 236 | ||
| 237 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 237 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 238 | <col style="width: 211px"> | 238 | <col style="width: 211px"> |
| 239 | <col style="width: 120px"> | 239 | <col style="width: 120px"> |
| 240 | <col style="width: 266px"> | 240 | <col style="width: 266px"> |
| @@ -315,7 +315,7 @@ aclnnStatus aclnnInplaceHardtanh( | |||
| 315 | 315 | ||
| 316 | 第一段接口完成入参校验,出现以下场景时报错: | 316 | 第一段接口完成入参校验,出现以下场景时报错: |
| 317 | 317 | ||
| 318 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 318 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 319 | <col style="width: 291px"> | 319 | <col style="width: 291px"> |
| 320 | <col style="width: 135px"> | 320 | <col style="width: 135px"> |
| 321 | <col style="width: 724px"> | 321 | <col style="width: 724px"> |
| @@ -346,7 +346,7 @@ aclnnStatus aclnnInplaceHardtanh( | |||
| 346 | ## aclnnInplaceHardtanh | 346 | ## aclnnInplaceHardtanh |
| 347 | 347 | ||
| 348 | - **参数说明** | 348 | - **参数说明** |
| 349 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 349 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 350 | <col style="width: 184px"> | 350 | <col style="width: 184px"> |
| 351 | <col style="width: 134px"> | 351 | <col style="width: 134px"> |
| 352 | <col style="width: 832px"> | 352 | <col style="width: 832px"> |
| @@ -22,7 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | - 原型信息 | 23 | - 原型信息 |
| 24 | 24 | ||
| 25 | -<table style="undefined;table-layout: fixed; width: 966px"> <colgroup> <col style="width: 144px"> <col style="width: 166px"> <col style="width: 290px"> <col style="width: 264px"> <col style="width: 102px"> </colgroup> <thead> <tr> <th>参数名</th> <th>输入/输出/属性</th> <th>描述</th> <th>数据类型</th> <th>数据格式</th> </tr> </thead> <tbody> <tr> <td>col</td> <td>输入张量</td> <td>必选输入张量,形状为(N, C*kH*kW, L)或(C*kH*kW, L)</td> <td>FLOAT、FLOAT16</td> <td>ND</td> </tr> <tr> <td>kernel_h</td> <td>属性</td> <td>卷积核的高度,可选属性,默认值为2</td> <td>INT</td> <td>-</td> </tr> <tr> <td>kernel_w</td> <td>属性</td> <td>卷积核的宽度,可选属性,默认值为2</td> <td>INT</td> <td>-</td> </tr> <tr> <td>output_h</td> <td>属性</td> <td>输出图像的高度,可选属性,默认值为4</td> <td>INT</td> <td>-</td> </tr> <tr> <td>output_w</td> <td>属性</td> <td>输出图像的宽度,可选属性,默认值为4</td> <td>INT</td> <td>-</td> </tr> <tr> <td>stride_val</td> <td>属性</td> <td>步长,可选属性,默认值为1</td> <td>INT</td> <td>-</td> </tr> <tr> <td>padding_val</td> <td>属性</td> <td>填充大小,可选属性,默认值为0</td> <td>INT</td> <td>-</td> </tr> <tr> <td>dilation_val</td> <td>属性</td> <td>膨胀系数,可选属性,默认值为1</td> <td>INT</td> <td>-</td> </tr> <tr> <td>x</td> <td>输出张量</td> <td>必选输出张量,形状为(N, C, H, W)或(C, H, W)</td> <td>FLOAT、FLOAT16</td> <td>ND</td> </tr> </tbody> </table> | 25 | +<table style="table-layout: fixed; width: 966px"> <colgroup> <col style="width: 144px"> <col style="width: 166px"> <col style="width: 290px"> <col style="width: 264px"> <col style="width: 102px"> </colgroup> <thead> <tr> <th>参数名</th> <th>输入/输出/属性</th> <th>描述</th> <th>数据类型</th> <th>数据格式</th> </tr> </thead> <tbody> <tr> <td>col</td> <td>输入张量</td> <td>必选输入张量,形状为(N, C*kH*kW, L)或(C*kH*kW, L)</td> <td>FLOAT、FLOAT16</td> <td>ND</td> </tr> <tr> <td>kernel_h</td> <td>属性</td> <td>卷积核的高度,可选属性,默认值为2</td> <td>INT</td> <td>-</td> </tr> <tr> <td>kernel_w</td> <td>属性</td> <td>卷积核的宽度,可选属性,默认值为2</td> <td>INT</td> <td>-</td> </tr> <tr> <td>output_h</td> <td>属性</td> <td>输出图像的高度,可选属性,默认值为4</td> <td>INT</td> <td>-</td> </tr> <tr> <td>output_w</td> <td>属性</td> <td>输出图像的宽度,可选属性,默认值为4</td> <td>INT</td> <td>-</td> </tr> <tr> <td>stride_val</td> <td>属性</td> <td>步长,可选属性,默认值为1</td> <td>INT</td> <td>-</td> </tr> <tr> <td>padding_val</td> <td>属性</td> <td>填充大小,可选属性,默认值为0</td> <td>INT</td> <td>-</td> </tr> <tr> <td>dilation_val</td> <td>属性</td> <td>膨胀系数,可选属性,默认值为1</td> <td>INT</td> <td>-</td> </tr> <tr> <td>x</td> <td>输出张量</td> <td>必选输出张量,形状为(N, C, H, W)或(C, H, W)</td> <td>FLOAT、FLOAT16</td> <td>ND</td> </tr> </tbody> </table> |
| 26 | 26 | ||
| 27 | ## 约束与限制 | 27 | ## 约束与限制 |
| 28 | 28 | ||
| @@ -34,7 +34,7 @@ aclnnStatus aclnnInplaceFillScalar( | |||
| 34 | 34 | ||
| 35 | - **参数说明** | 35 | - **参数说明** |
| 36 | 36 | ||
| 37 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 37 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 38 | <col style="width: 211px"> | 38 | <col style="width: 211px"> |
| 39 | <col style="width: 120px"> | 39 | <col style="width: 120px"> |
| 40 | <col style="width: 266px"> | 40 | <col style="width: 266px"> |
| @@ -107,7 +107,7 @@ aclnnStatus aclnnInplaceFillScalar( | |||
| 107 | 107 | ||
| 108 | 第一段接口完成入参校验,出现以下场景时报错: | 108 | 第一段接口完成入参校验,出现以下场景时报错: |
| 109 | 109 | ||
| 110 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 110 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 111 | <col style="width: 291px"> | 111 | <col style="width: 291px"> |
| 112 | <col style="width: 135px"> | 112 | <col style="width: 135px"> |
| 113 | <col style="width: 724px"> | 113 | <col style="width: 724px"> |
| @@ -139,7 +139,7 @@ aclnnStatus aclnnInplaceFillScalar( | |||
| 139 | 139 | ||
| 140 | - **参数说明** | 140 | - **参数说明** |
| 141 | 141 | ||
| 142 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 142 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 143 | <col style="width: 184px"> | 143 | <col style="width: 184px"> |
| 144 | <col style="width: 134px"> | 144 | <col style="width: 134px"> |
| 145 | <col style="width: 832px"> | 145 | <col style="width: 832px"> |
| @@ -268,7 +268,7 @@ int main() { | |||
| 268 | pScalar = aclCreateScalar(&pValue, aclDataType::ACL_FLOAT); | 268 | pScalar = aclCreateScalar(&pValue, aclDataType::ACL_FLOAT); |
| 269 | CHECK_RET(pScalar != nullptr, return ret); | 269 | CHECK_RET(pScalar != nullptr, return ret); |
| 270 | 270 | ||
| 271 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 271 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 272 | uint64_t workspaceSize = 0; | 272 | uint64_t workspaceSize = 0; |
| 273 | aclOpExecutor* executor; | 273 | aclOpExecutor* executor; |
| 274 | // 调用aclnnInplaceFillScalar第一段接口 | 274 | // 调用aclnnInplaceFillScalar第一段接口 |
| @@ -34,7 +34,7 @@ aclnnStatus aclnnInplaceFillTensor( | |||
| 34 | 34 | ||
| 35 | - **参数说明** | 35 | - **参数说明** |
| 36 | 36 | ||
| 37 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 37 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 38 | <col style="width: 211px"> | 38 | <col style="width: 211px"> |
| 39 | <col style="width: 120px"> | 39 | <col style="width: 120px"> |
| 40 | <col style="width: 266px"> | 40 | <col style="width: 266px"> |
| @@ -106,7 +106,7 @@ aclnnStatus aclnnInplaceFillTensor( | |||
| 106 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../../docs/zh/context/aclnn_return_code.md)。 | 106 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../../docs/zh/context/aclnn_return_code.md)。 |
| 107 | 107 | ||
| 108 | 第一段接口完成入参校验,出现以下场景时报错: | 108 | 第一段接口完成入参校验,出现以下场景时报错: |
| 109 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 109 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 110 | <col style="width: 291px"> | 110 | <col style="width: 291px"> |
| 111 | <col style="width: 135px"> | 111 | <col style="width: 135px"> |
| 112 | <col style="width: 724px"> | 112 | <col style="width: 724px"> |
| @@ -147,7 +147,7 @@ aclnnStatus aclnnInplaceFillTensor( | |||
| 147 | 147 | ||
| 148 | - **参数说明** | 148 | - **参数说明** |
| 149 | 149 | ||
| 150 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 150 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 151 | <col style="width: 184px"> | 151 | <col style="width: 184px"> |
| 152 | <col style="width: 134px"> | 152 | <col style="width: 134px"> |
| 153 | <col style="width: 832px"> | 153 | <col style="width: 832px"> |
| @@ -279,7 +279,7 @@ int main() { | |||
| 279 | ret = CreateAclTensor(valueHostData, valueShape, &valueDeviceAddr, aclDataType::ACL_FLOAT, &value); | 279 | ret = CreateAclTensor(valueHostData, valueShape, &valueDeviceAddr, aclDataType::ACL_FLOAT, &value); |
| 280 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 280 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 281 | 281 | ||
| 282 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 282 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 283 | uint64_t workspaceSize = 0; | 283 | uint64_t workspaceSize = 0; |
| 284 | aclOpExecutor* executor; | 284 | aclOpExecutor* executor; |
| 285 | // 调用aclnnInplaceFillTensor第一段接口 | 285 | // 调用aclnnInplaceFillTensor第一段接口 |
| @@ -19,7 +19,7 @@ $$ | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 23 | <col style="width: 100px"> | 23 | <col style="width: 100px"> |
| 24 | <col style="width: 150px"> | 24 | <col style="width: 150px"> |
| 25 | <col style="width: 280px"> | 25 | <col style="width: 280px"> |
| @@ -21,7 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | - 原型信息 | 22 | - 原型信息 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 966px"> <colgroup> <col style="width: 144px"> <col style="width: 166px"> <col style="width: 290px"> <col style="width: 264px"> <col style="width: 102px"> </colgroup> <thead> <tr> <th>参数名</th> <th>输入/输出/属性</th> <th>描述</th> <th>数据类型</th> <th>数据格式</th> </tr> </thead> <tbody> <tr> <td>x</td> <td>输入张量</td> <td>必选输入张量,shape为3维或4维</td> <td>FLOAT、FLOAT16</td> <td>ND</td> </tr> <tr> <td>kernel_h</td> <td>属性</td> <td>卷积核的高度,可选属性,默认值为2</td> <td>INT</td> <td>-</td> </tr> <tr> <td>kernel_w</td> <td>属性</td> <td>卷积核的宽度,可选属性,默认值为2</td> <td>INT</td> <td>-</td> </tr> <tr> <td>stride_val</td> <td>属性</td> <td>步长,可选属性,默认值为1</td> <td>INT</td> <td>-</td> </tr> <tr> <td>padding_val</td> <td>属性</td> <td>填充大小,可选属性,默认值为0</td> <td>INT</td> <td>-</td> </tr> <tr> <td>z</td> <td>输出张量</td> <td>必选输出张量,shape根据输入参数推导得出</td> <td>FLOAT、FLOAT16</td> <td>ND</td> </tr> </tbody> </table> | 24 | +<table style="table-layout: fixed; width: 966px"> <colgroup> <col style="width: 144px"> <col style="width: 166px"> <col style="width: 290px"> <col style="width: 264px"> <col style="width: 102px"> </colgroup> <thead> <tr> <th>参数名</th> <th>输入/输出/属性</th> <th>描述</th> <th>数据类型</th> <th>数据格式</th> </tr> </thead> <tbody> <tr> <td>x</td> <td>输入张量</td> <td>必选输入张量,shape为3维或4维</td> <td>FLOAT、FLOAT16</td> <td>ND</td> </tr> <tr> <td>kernel_h</td> <td>属性</td> <td>卷积核的高度,可选属性,默认值为2</td> <td>INT</td> <td>-</td> </tr> <tr> <td>kernel_w</td> <td>属性</td> <td>卷积核的宽度,可选属性,默认值为2</td> <td>INT</td> <td>-</td> </tr> <tr> <td>stride_val</td> <td>属性</td> <td>步长,可选属性,默认值为1</td> <td>INT</td> <td>-</td> </tr> <tr> <td>padding_val</td> <td>属性</td> <td>填充大小,可选属性,默认值为0</td> <td>INT</td> <td>-</td> </tr> <tr> <td>z</td> <td>输出张量</td> <td>必选输出张量,shape根据输入参数推导得出</td> <td>FLOAT、FLOAT16</td> <td>ND</td> </tr> </tbody> </table> |
| 25 | 25 | ||
| 26 | ## 约束与限制 | 26 | ## 约束与限制 |
| 27 | 27 | ||
| @@ -51,7 +51,7 @@ aclnnStatus aclnnIm2col( | |||
| 51 | 51 | ||
| 52 | - **参数说明** | 52 | - **参数说明** |
| 53 | 53 | ||
| 54 | - <table style="undefined;table-layout: fixed; width: 1500px"><colgroup> | 54 | + <table style="table-layout: fixed; width: 1500px"><colgroup> |
| 55 | <col style="width: 180px"><col style="width: 100px"><col style="width: 270px"><col style="width: 360px"> | 55 | <col style="width: 180px"><col style="width: 100px"><col style="width: 270px"><col style="width: 360px"> |
| 56 | <col style="width: 180px"><col style="width: 100px"><col style="width: 150px"><col style="width: 100px"> | 56 | <col style="width: 180px"><col style="width: 100px"><col style="width: 150px"><col style="width: 100px"> |
| 57 | </colgroup><thead><tr> | 57 | </colgroup><thead><tr> |
| @@ -19,7 +19,7 @@ $$ | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 980px"> | 22 | +<table style="table-layout: fixed; width: 980px"> |
| 23 | <colgroup> | 23 | <colgroup> |
| 24 | <col style="width: 100px"> | 24 | <col style="width: 100px"> |
| 25 | <col style="width: 150px"> | 25 | <col style="width: 150px"> |
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 23 | <col style="width: 100px"> | 23 | <col style="width: 100px"> |
| 24 | <col style="width: 150px"> | 24 | <col style="width: 150px"> |
| 25 | <col style="width: 280px"> | 25 | <col style="width: 280px"> |
| @@ -12,7 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | ## 参数说明 | 13 | ## 参数说明 |
| 14 | 14 | ||
| 15 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 15 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 16 | <col style="width: 140px"> | 16 | <col style="width: 140px"> |
| 17 | <col style="width: 140px"> | 17 | <col style="width: 140px"> |
| 18 | <col style="width: 180px"> | 18 | <col style="width: 180px"> |
| @@ -41,7 +41,7 @@ aclnnStatus aclnnSplitTensor( | |||
| 41 | 41 | ||
| 42 | - **参数说明** | 42 | - **参数说明** |
| 43 | 43 | ||
| 44 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 44 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 45 | <col style="width: 211px"> | 45 | <col style="width: 211px"> |
| 46 | <col style="width: 120px"> | 46 | <col style="width: 120px"> |
| 47 | <col style="width: 266px"> | 47 | <col style="width: 266px"> |
| @@ -132,7 +132,7 @@ aclnnStatus aclnnSplitTensor( | |||
| 132 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../../docs/zh/context/aclnn_return_code.md)。 | 132 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../../docs/zh/context/aclnn_return_code.md)。 |
| 133 | 133 | ||
| 134 | 第一段接口完成入参校验,出现以下场景时报错: | 134 | 第一段接口完成入参校验,出现以下场景时报错: |
| 135 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 135 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 136 | <col style="width: 291px"> | 136 | <col style="width: 291px"> |
| 137 | <col style="width: 135px"> | 137 | <col style="width: 135px"> |
| 138 | <col style="width: 724px"> | 138 | <col style="width: 724px"> |
| @@ -176,7 +176,7 @@ aclnnStatus aclnnSplitTensor( | |||
| 176 | 176 | ||
| 177 | - **参数说明** | 177 | - **参数说明** |
| 178 | 178 | ||
| 179 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 179 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 180 | <col style="width: 184px"> | 180 | <col style="width: 184px"> |
| 181 | <col style="width: 134px"> | 181 | <col style="width: 134px"> |
| 182 | <col style="width: 832px"> | 182 | <col style="width: 832px"> |
| @@ -340,7 +340,7 @@ int main() { | |||
| 340 | aclTensorList* out = aclCreateTensorList(tmp.data(), tmp.size()); | 340 | aclTensorList* out = aclCreateTensorList(tmp.data(), tmp.size()); |
| 341 | CHECK_RET(out != nullptr, return ret); | 341 | CHECK_RET(out != nullptr, return ret); |
| 342 | 342 | ||
| 343 | - // 调用CANN算子库API,需要修改为具体的Api名称 | 343 | + // 调用CANN算子库API,需要修改为具体的API名称 |
| 344 | uint64_t workspaceSize = 0; | 344 | uint64_t workspaceSize = 0; |
| 345 | aclOpExecutor *executor; | 345 | aclOpExecutor *executor; |
| 346 | // 调用aclnnSplitTensor第一段接口 | 346 | // 调用aclnnSplitTensor第一段接口 |
| @@ -41,7 +41,7 @@ aclnnStatus aclnnSplitWithSize( | |||
| 41 | 41 | ||
| 42 | - **参数说明** | 42 | - **参数说明** |
| 43 | 43 | ||
| 44 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 44 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 45 | <col style="width: 211px"> | 45 | <col style="width: 211px"> |
| 46 | <col style="width: 120px"> | 46 | <col style="width: 120px"> |
| 47 | <col style="width: 266px"> | 47 | <col style="width: 266px"> |
| @@ -133,7 +133,7 @@ aclnnStatus aclnnSplitWithSize( | |||
| 133 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../../docs/zh/context/aclnn_return_code.md)。 | 133 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../../docs/zh/context/aclnn_return_code.md)。 |
| 134 | 134 | ||
| 135 | 第一段接口完成入参校验,出现以下场景时报错: | 135 | 第一段接口完成入参校验,出现以下场景时报错: |
| 136 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 136 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 137 | <col style="width: 291px"> | 137 | <col style="width: 291px"> |
| 138 | <col style="width: 135px"> | 138 | <col style="width: 135px"> |
| 139 | <col style="width: 724px"> | 139 | <col style="width: 724px"> |
| @@ -174,7 +174,7 @@ aclnnStatus aclnnSplitWithSize( | |||
| 174 | 174 | ||
| 175 | - **参数说明** | 175 | - **参数说明** |
| 176 | 176 | ||
| 177 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 177 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 178 | <col style="width: 184px"> | 178 | <col style="width: 184px"> |
| 179 | <col style="width: 134px"> | 179 | <col style="width: 134px"> |
| 180 | <col style="width: 832px"> | 180 | <col style="width: 832px"> |
| @@ -342,7 +342,7 @@ int main() { | |||
| 342 | aclTensorList* out = aclCreateTensorList(tmp.data(), tmp.size()); | 342 | aclTensorList* out = aclCreateTensorList(tmp.data(), tmp.size()); |
| 343 | CHECK_RET(out != nullptr, return ret); | 343 | CHECK_RET(out != nullptr, return ret); |
| 344 | 344 | ||
| 345 | - // 调用CANN算子库API,需要修改为具体的Api名称 | 345 | + // 调用CANN算子库API,需要修改为具体的API名称 |
| 346 | uint64_t workspaceSize = 0; | 346 | uint64_t workspaceSize = 0; |
| 347 | aclOpExecutor *executor; | 347 | aclOpExecutor *executor; |
| 348 | // 调用aclnnSplitWithSize第一段接口 | 348 | // 调用aclnnSplitWithSize第一段接口 |
| @@ -46,7 +46,7 @@ aclnnStatus aclnnTensorMove( | |||
| 46 | 46 | ||
| 47 | - **参数说明** | 47 | - **参数说明** |
| 48 | 48 | ||
| 49 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 49 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 50 | <col style="width: 211px"> | 50 | <col style="width: 211px"> |
| 51 | <col style="width: 120px"> | 51 | <col style="width: 120px"> |
| 52 | <col style="width: 266px"> | 52 | <col style="width: 266px"> |
| @@ -116,7 +116,7 @@ aclnnStatus aclnnTensorMove( | |||
| 116 | 116 | ||
| 117 | 第一段接口完成入参校验,出现以下场景时报错: | 117 | 第一段接口完成入参校验,出现以下场景时报错: |
| 118 | 118 | ||
| 119 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 119 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 120 | <col style="width: 291px"> | 120 | <col style="width: 291px"> |
| 121 | <col style="width: 135px"> | 121 | <col style="width: 135px"> |
| 122 | <col style="width: 724px"> | 122 | <col style="width: 724px"> |
| @@ -151,7 +151,7 @@ aclnnStatus aclnnTensorMove( | |||
| 151 | 151 | ||
| 152 | - **参数说明** | 152 | - **参数说明** |
| 153 | 153 | ||
| 154 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 154 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 155 | <col style="width: 184px"> | 155 | <col style="width: 184px"> |
| 156 | <col style="width: 134px"> | 156 | <col style="width: 134px"> |
| 157 | <col style="width: 832px"> | 157 | <col style="width: 832px"> |
| @@ -285,7 +285,7 @@ int main() { | |||
| 285 | ret = CreateAclTensor(yHostData, shape, &yDeviceAddr, aclDataType::ACL_FLOAT, &y); | 285 | ret = CreateAclTensor(yHostData, shape, &yDeviceAddr, aclDataType::ACL_FLOAT, &y); |
| 286 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 286 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 287 | 287 | ||
| 288 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 288 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 289 | uint64_t workspaceSize = 0; | 289 | uint64_t workspaceSize = 0; |
| 290 | aclOpExecutor* executor; | 290 | aclOpExecutor* executor; |
| 291 | // 调用aclnnTensorMove第一段接口 | 291 | // 调用aclnnTensorMove第一段接口 |
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | ## 参数说明 | 14 | ## 参数说明 |
| 15 | 15 | ||
| 16 | -<table style="undefined;table-layout: fixed; width: 1005px"><colgroup> | 16 | +<table style="table-layout: fixed; width: 1005px"><colgroup> |
| 17 | <col style="width: 140px"> | 17 | <col style="width: 140px"> |
| 18 | <col style="width: 140px"> | 18 | <col style="width: 140px"> |
| 19 | <col style="width: 180px"> | 19 | <col style="width: 180px"> |
| @@ -50,7 +50,7 @@ aclnnStatus aclnnInplaceZero( | |||
| 50 | 50 | ||
| 51 | - **参数说明:** | 51 | - **参数说明:** |
| 52 | 52 | ||
| 53 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 53 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 54 | <col style="width: 146px"> | 54 | <col style="width: 146px"> |
| 55 | <col style="width: 110px"> | 55 | <col style="width: 110px"> |
| 56 | <col style="width: 301px"> | 56 | <col style="width: 301px"> |
| @@ -110,7 +110,7 @@ aclnnStatus aclnnInplaceZero( | |||
| 110 | 110 | ||
| 111 | 第一段接口会完成入参校验,出现以下场景时报错: | 111 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 112 | 112 | ||
| 113 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 113 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 114 | <col style="width: 319px"> | 114 | <col style="width: 319px"> |
| 115 | <col style="width: 144px"> | 115 | <col style="width: 144px"> |
| 116 | <col style="width: 671px"> | 116 | <col style="width: 671px"> |
| @@ -139,7 +139,7 @@ aclnnStatus aclnnInplaceZero( | |||
| 139 | 139 | ||
| 140 | - **参数说明:** | 140 | - **参数说明:** |
| 141 | 141 | ||
| 142 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 142 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 143 | <col style="width: 173px"> | 143 | <col style="width: 173px"> |
| 144 | <col style="width: 112px"> | 144 | <col style="width: 112px"> |
| 145 | <col style="width: 668px"> | 145 | <col style="width: 668px"> |
| @@ -304,7 +304,7 @@ int main() | |||
| 304 | ret = CreateAclTensor(selfHostData, selfShape, &selfDeviceAddr, aclDataType::ACL_FLOAT, &selfRef); | 304 | ret = CreateAclTensor(selfHostData, selfShape, &selfDeviceAddr, aclDataType::ACL_FLOAT, &selfRef); |
| 305 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 305 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 306 | 306 | ||
| 307 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 307 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 308 | uint64_t workspaceSize = 0; | 308 | uint64_t workspaceSize = 0; |
| 309 | aclOpExecutor* executor; | 309 | aclOpExecutor* executor; |
| 310 | 310 | ||
| @@ -12,7 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | ## 参数说明 | 13 | ## 参数说明 |
| 14 | 14 | ||
| 15 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 15 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 16 | <col style="width: 100px"> | 16 | <col style="width: 100px"> |
| 17 | <col style="width: 150px"> | 17 | <col style="width: 150px"> |
| 18 | <col style="width: 280px"> | 18 | <col style="width: 280px"> |
| @@ -34,7 +34,7 @@ | |||
| 34 | <td>待进行累加计算的入参,包含一组向量。</td> | 34 | <td>待进行累加计算的入参,包含一组向量。</td> |
| 35 | <td>FLOAT、FLOAT16、INT32、INT8、UINT8</td> | 35 | <td>FLOAT、FLOAT16、INT32、INT8、UINT8</td> |
| 36 | <td>ND</td> | 36 | <td>ND</td> |
| 37 | -</tr> | 37 | +</tr> |
| 38 | <tr> | 38 | <tr> |
| 39 | <td>y</td> | 39 | <td>y</td> |
| 40 | <td>必要输出</td> | 40 | <td>必要输出</td> |
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 23 | <col style="width: 100px"> | 23 | <col style="width: 100px"> |
| 24 | <col style="width: 150px"> | 24 | <col style="width: 150px"> |
| 25 | <col style="width: 190px"> | 25 | <col style="width: 190px"> |
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | ## 参数说明 | 24 | ## 参数说明 |
| 25 | 25 | ||
| 26 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 26 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 27 | <col style="width: 100px"> | 27 | <col style="width: 100px"> |
| 28 | <col style="width: 150px"> | 28 | <col style="width: 150px"> |
| 29 | <col style="width: 190px"> | 29 | <col style="width: 190px"> |
| @@ -20,7 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | ## 参数说明 | 21 | ## 参数说明 |
| 22 | 22 | ||
| 23 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 23 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 24 | <col style="width: 100px"> | 24 | <col style="width: 100px"> |
| 25 | <col style="width: 150px"> | 25 | <col style="width: 150px"> |
| 26 | <col style="width: 240px"> | 26 | <col style="width: 240px"> |
| @@ -64,7 +64,7 @@ | |||
| 64 | 64 | ||
| 65 | - **参数说明:** | 65 | - **参数说明:** |
| 66 | 66 | ||
| 67 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 67 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 68 | <col style="width: 150px"> | 68 | <col style="width: 150px"> |
| 69 | <col style="width: 121px"> | 69 | <col style="width: 121px"> |
| 70 | <col style="width: 206px"> | 70 | <col style="width: 206px"> |
| @@ -185,7 +185,7 @@ | |||
| 185 | 185 | ||
| 186 | 第一段接口完成入参校验,出现如下场景时报错: | 186 | 第一段接口完成入参校验,出现如下场景时报错: |
| 187 | 187 | ||
| 188 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 188 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 189 | <col style="width: 267px"> | 189 | <col style="width: 267px"> |
| 190 | <col style="width: 124px"> | 190 | <col style="width: 124px"> |
| 191 | <col style="width: 775px"> | 191 | <col style="width: 775px"> |
| @@ -229,7 +229,7 @@ | |||
| 229 | 229 | ||
| 230 | - **参数说明:** | 230 | - **参数说明:** |
| 231 | 231 | ||
| 232 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 232 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 233 | <col style="width: 173px"> | 233 | <col style="width: 173px"> |
| 234 | <col style="width: 133px"> | 234 | <col style="width: 133px"> |
| 235 | <col style="width: 860px"> | 235 | <col style="width: 860px"> |
| @@ -272,7 +272,7 @@ | |||
| 272 | 272 | ||
| 273 | - **参数说明:** | 273 | - **参数说明:** |
| 274 | 274 | ||
| 275 | - <table style="undefined;table-layout: fixed; width: 1548px"><colgroup> | 275 | + <table style="table-layout: fixed; width: 1548px"><colgroup> |
| 276 | <col style="width: 150px"> | 276 | <col style="width: 150px"> |
| 277 | <col style="width: 121px"> | 277 | <col style="width: 121px"> |
| 278 | <col style="width: 206px"> | 278 | <col style="width: 206px"> |
| @@ -379,7 +379,7 @@ | |||
| 379 | 379 | ||
| 380 | 第一段接口完成入参校验,出现如下场景时报错: | 380 | 第一段接口完成入参校验,出现如下场景时报错: |
| 381 | 381 | ||
| 382 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 382 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 383 | <col style="width: 267px"> | 383 | <col style="width: 267px"> |
| 384 | <col style="width: 124px"> | 384 | <col style="width: 124px"> |
| 385 | <col style="width: 775px"> | 385 | <col style="width: 775px"> |
| @@ -423,7 +423,7 @@ | |||
| 423 | 423 | ||
| 424 | - **参数说明:** | 424 | - **参数说明:** |
| 425 | 425 | ||
| 426 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 426 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 427 | <col style="width: 173px"> | 427 | <col style="width: 173px"> |
| 428 | <col style="width: 133px"> | 428 | <col style="width: 133px"> |
| 429 | <col style="width: 860px"> | 429 | <col style="width: 860px"> |
| @@ -576,7 +576,7 @@ int main() { | |||
| 576 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 576 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 577 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 577 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 578 | 578 | ||
| 579 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 579 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 580 | uint64_t workspaceSize = 0; | 580 | uint64_t workspaceSize = 0; |
| 581 | aclOpExecutor* executor; | 581 | aclOpExecutor* executor; |
| 582 | // 调用aclnnAddcdiv第一段接口 | 582 | // 调用aclnnAddcdiv第一段接口 |
| @@ -729,7 +729,7 @@ int main() { | |||
| 729 | // 创建value aclScalar | 729 | // 创建value aclScalar |
| 730 | value = aclCreateScalar(&scalarValue, aclDataType::ACL_FLOAT); | 730 | value = aclCreateScalar(&scalarValue, aclDataType::ACL_FLOAT); |
| 731 | 731 | ||
| 732 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 732 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 733 | uint64_t workspaceSize = 0; | 733 | uint64_t workspaceSize = 0; |
| 734 | aclOpExecutor* executor; | 734 | aclOpExecutor* executor; |
| 735 | // 调用aclnnInplaceAddcdiv第一段接口 | 735 | // 调用aclnnInplaceAddcdiv第一段接口 |
| @@ -65,7 +65,7 @@ | |||
| 65 | 65 | ||
| 66 | - **参数说明:** | 66 | - **参数说明:** |
| 67 | 67 | ||
| 68 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 68 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 69 | <col style="width: 150px"> | 69 | <col style="width: 150px"> |
| 70 | <col style="width: 121px"> | 70 | <col style="width: 121px"> |
| 71 | <col style="width: 206px"> | 71 | <col style="width: 206px"> |
| @@ -188,7 +188,7 @@ | |||
| 188 | 188 | ||
| 189 | 第一段接口完成入参校验,出现如下场景时报错: | 189 | 第一段接口完成入参校验,出现如下场景时报错: |
| 190 | 190 | ||
| 191 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 191 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 192 | <col style="width: 267px"> | 192 | <col style="width: 267px"> |
| 193 | <col style="width: 124px"> | 193 | <col style="width: 124px"> |
| 194 | <col style="width: 775px"> | 194 | <col style="width: 775px"> |
| @@ -235,7 +235,7 @@ | |||
| 235 | 235 | ||
| 236 | - **参数说明:** | 236 | - **参数说明:** |
| 237 | 237 | ||
| 238 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 238 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 239 | <col style="width: 173px"> | 239 | <col style="width: 173px"> |
| 240 | <col style="width: 133px"> | 240 | <col style="width: 133px"> |
| 241 | <col style="width: 860px"> | 241 | <col style="width: 860px"> |
| @@ -278,7 +278,7 @@ | |||
| 278 | 278 | ||
| 279 | - **参数说明:** | 279 | - **参数说明:** |
| 280 | 280 | ||
| 281 | - <table style="undefined;table-layout: fixed; width: 1546px"><colgroup> | 281 | + <table style="table-layout: fixed; width: 1546px"><colgroup> |
| 282 | <col style="width: 150px"> | 282 | <col style="width: 150px"> |
| 283 | <col style="width: 121px"> | 283 | <col style="width: 121px"> |
| 284 | <col style="width: 206px"> | 284 | <col style="width: 206px"> |
| @@ -386,7 +386,7 @@ | |||
| 386 | 386 | ||
| 387 | 第一段接口完成入参校验,出现如下场景时报错: | 387 | 第一段接口完成入参校验,出现如下场景时报错: |
| 388 | 388 | ||
| 389 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 389 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 390 | <col style="width: 267px"> | 390 | <col style="width: 267px"> |
| 391 | <col style="width: 124px"> | 391 | <col style="width: 124px"> |
| 392 | <col style="width: 775px"> | 392 | <col style="width: 775px"> |
| @@ -433,7 +433,7 @@ | |||
| 433 | 433 | ||
| 434 | - **参数说明:** | 434 | - **参数说明:** |
| 435 | 435 | ||
| 436 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 436 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 437 | <col style="width: 173px"> | 437 | <col style="width: 173px"> |
| 438 | <col style="width: 133px"> | 438 | <col style="width: 133px"> |
| 439 | <col style="width: 860px"> | 439 | <col style="width: 860px"> |
| @@ -588,7 +588,7 @@ int main() { | |||
| 588 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 588 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 589 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 589 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 590 | 590 | ||
| 591 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 591 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 592 | uint64_t workspaceSize = 0; | 592 | uint64_t workspaceSize = 0; |
| 593 | aclOpExecutor* executor; | 593 | aclOpExecutor* executor; |
| 594 | // 调用aclnnAddcmul第一段接口 | 594 | // 调用aclnnAddcmul第一段接口 |
| @@ -742,7 +742,7 @@ int main() { | |||
| 742 | value = aclCreateScalar(&scalarValue, aclDataType::ACL_FLOAT); | 742 | value = aclCreateScalar(&scalarValue, aclDataType::ACL_FLOAT); |
| 743 | CHECK_RET(value != nullptr, return ret); | 743 | CHECK_RET(value != nullptr, return ret); |
| 744 | 744 | ||
| 745 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 745 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 746 | uint64_t workspaceSize = 0; | 746 | uint64_t workspaceSize = 0; |
| 747 | aclOpExecutor* executor; | 747 | aclOpExecutor* executor; |
| 748 | // 调用aclnnInplaceAddcmul第一段接口 | 748 | // 调用aclnnInplaceAddcmul第一段接口 |
| @@ -20,7 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | ## 参数说明 | 21 | ## 参数说明 |
| 22 | 22 | ||
| 23 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 23 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 24 | <col style="width: 100px"> | 24 | <col style="width: 100px"> |
| 25 | <col style="width: 150px"> | 25 | <col style="width: 150px"> |
| 26 | <col style="width: 280px"> | 26 | <col style="width: 280px"> |
| @@ -82,7 +82,7 @@ aclnnStatus aclnnInplaceAddrV2( | |||
| 82 | 82 | ||
| 83 | - **参数说明:** | 83 | - **参数说明:** |
| 84 | 84 | ||
| 85 | - <table style="undefined;table-layout: fixed; width: 1570px"><colgroup> | 85 | + <table style="table-layout: fixed; width: 1570px"><colgroup> |
| 86 | <col style="width: 220px"> | 86 | <col style="width: 220px"> |
| 87 | <col style="width: 120px"> | 87 | <col style="width: 120px"> |
| 88 | <col style="width: 350px"> | 88 | <col style="width: 350px"> |
| @@ -196,7 +196,7 @@ aclnnStatus aclnnInplaceAddrV2( | |||
| 196 | 196 | ||
| 197 | 第一段接口完成入参校验,出现以下场景时报错: | 197 | 第一段接口完成入参校验,出现以下场景时报错: |
| 198 | 198 | ||
| 199 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 199 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 200 | <col style="width: 288px"> | 200 | <col style="width: 288px"> |
| 201 | <col style="width: 114px"> | 201 | <col style="width: 114px"> |
| 202 | <col style="width: 747px"> | 202 | <col style="width: 747px"> |
| @@ -237,7 +237,7 @@ aclnnStatus aclnnInplaceAddrV2( | |||
| 237 | 237 | ||
| 238 | - **参数说明:** | 238 | - **参数说明:** |
| 239 | 239 | ||
| 240 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 240 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 241 | <col style="width: 184px"> | 241 | <col style="width: 184px"> |
| 242 | <col style="width: 134px"> | 242 | <col style="width: 134px"> |
| 243 | <col style="width: 833px"> | 243 | <col style="width: 833px"> |
| @@ -280,7 +280,7 @@ aclnnStatus aclnnInplaceAddrV2( | |||
| 280 | 280 | ||
| 281 | - **参数说明:** | 281 | - **参数说明:** |
| 282 | 282 | ||
| 283 | - <table style="undefined;table-layout: fixed; width: 1570px"><colgroup> | 283 | + <table style="table-layout: fixed; width: 1570px"><colgroup> |
| 284 | <col style="width: 220px"> | 284 | <col style="width: 220px"> |
| 285 | <col style="width: 120px"> | 285 | <col style="width: 120px"> |
| 286 | <col style="width: 350px"> | 286 | <col style="width: 350px"> |
| @@ -384,7 +384,7 @@ aclnnStatus aclnnInplaceAddrV2( | |||
| 384 | 384 | ||
| 385 | 第一段接口完成入参校验,出现以下场景时报错: | 385 | 第一段接口完成入参校验,出现以下场景时报错: |
| 386 | 386 | ||
| 387 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 387 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 388 | <col style="width: 288px"> | 388 | <col style="width: 288px"> |
| 389 | <col style="width: 114px"> | 389 | <col style="width: 114px"> |
| 390 | <col style="width: 747px"> | 390 | <col style="width: 747px"> |
| @@ -425,7 +425,7 @@ aclnnStatus aclnnInplaceAddrV2( | |||
| 425 | 425 | ||
| 426 | - **参数说明:** | 426 | - **参数说明:** |
| 427 | 427 | ||
| 428 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 428 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 429 | <col style="width: 184px"> | 429 | <col style="width: 184px"> |
| 430 | <col style="width: 134px"> | 430 | <col style="width: 134px"> |
| 431 | <col style="width: 833px"> | 431 | <col style="width: 833px"> |
| @@ -29,7 +29,7 @@ | |||
| 29 | 29 | ||
| 30 | ## 参数说明 | 30 | ## 参数说明 |
| 31 | 31 | ||
| 32 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 32 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 33 | <col style="width: 100px"> | 33 | <col style="width: 100px"> |
| 34 | <col style="width: 130px"> | 34 | <col style="width: 130px"> |
| 35 | <col style="width: 300px"> | 35 | <col style="width: 300px"> |
| @@ -49,7 +49,7 @@ aclnnStatus aclnnMaxDim( | |||
| 49 | 49 | ||
| 50 | - **参数说明:** | 50 | - **参数说明:** |
| 51 | 51 | ||
| 52 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 52 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 53 | <col style="width: 217px"> | 53 | <col style="width: 217px"> |
| 54 | <col style="width: 125px"> | 54 | <col style="width: 125px"> |
| 55 | <col style="width: 247px"> | 55 | <col style="width: 247px"> |
| @@ -155,7 +155,7 @@ aclnnStatus aclnnMaxDim( | |||
| 155 | 155 | ||
| 156 | 第一段接口完成入参校验,出现如下场景时报错: | 156 | 第一段接口完成入参校验,出现如下场景时报错: |
| 157 | 157 | ||
| 158 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 158 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 159 | <col style="width: 300px"> | 159 | <col style="width: 300px"> |
| 160 | <col style="width: 134px"> | 160 | <col style="width: 134px"> |
| 161 | <col style="width: 716px"> | 161 | <col style="width: 716px"> |
| @@ -187,7 +187,7 @@ aclnnStatus aclnnMaxDim( | |||
| 187 | 187 | ||
| 188 | - **参数说明:** | 188 | - **参数说明:** |
| 189 | 189 | ||
| 190 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 190 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 191 | <col style="width: 184px"> | 191 | <col style="width: 184px"> |
| 192 | <col style="width: 134px"> | 192 | <col style="width: 134px"> |
| 193 | <col style="width: 833px"> | 193 | <col style="width: 833px"> |
| @@ -49,7 +49,7 @@ aclnnStatus aclnnMinDim( | |||
| 49 | 49 | ||
| 50 | - **参数说明:** | 50 | - **参数说明:** |
| 51 | 51 | ||
| 52 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 52 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 53 | <col style="width: 217px"> | 53 | <col style="width: 217px"> |
| 54 | <col style="width: 125px"> | 54 | <col style="width: 125px"> |
| 55 | <col style="width: 247px"> | 55 | <col style="width: 247px"> |
| @@ -155,7 +155,7 @@ aclnnStatus aclnnMinDim( | |||
| 155 | 155 | ||
| 156 | 第一段接口完成入参校验,出现如下场景时报错: | 156 | 第一段接口完成入参校验,出现如下场景时报错: |
| 157 | 157 | ||
| 158 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 158 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 159 | <col style="width: 300px"> | 159 | <col style="width: 300px"> |
| 160 | <col style="width: 134px"> | 160 | <col style="width: 134px"> |
| 161 | <col style="width: 716px"> | 161 | <col style="width: 716px"> |
| @@ -187,7 +187,7 @@ aclnnStatus aclnnMinDim( | |||
| 187 | 187 | ||
| 188 | - **参数说明:** | 188 | - **参数说明:** |
| 189 | 189 | ||
| 190 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 190 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 191 | <col style="width: 184px"> | 191 | <col style="width: 184px"> |
| 192 | <col style="width: 134px"> | 192 | <col style="width: 134px"> |
| 193 | <col style="width: 833px"> | 193 | <col style="width: 833px"> |
| @@ -190,7 +190,7 @@ int main() { | |||
| 190 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 190 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 191 | 191 | ||
| 192 | // aclnnAsinh接口调用示例 | 192 | // aclnnAsinh接口调用示例 |
| 193 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 193 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 194 | uint64_t workspaceSize = 0; | 194 | uint64_t workspaceSize = 0; |
| 195 | aclOpExecutor* executor; | 195 | aclOpExecutor* executor; |
| 196 | // 调用aclnnAsinh第一段接口 | 196 | // 调用aclnnAsinh第一段接口 |
| @@ -21,7 +21,7 @@ $$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 190px"> | 27 | <col style="width: 190px"> |
| @@ -31,7 +31,7 @@ $$ | |||
| 31 | 31 | ||
| 32 | ## 参数说明 | 32 | ## 参数说明 |
| 33 | 33 | ||
| 34 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 34 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 35 | <col style="width: 100px"> | 35 | <col style="width: 100px"> |
| 36 | <col style="width: 150px"> | 36 | <col style="width: 150px"> |
| 37 | <col style="width: 280px"> | 37 | <col style="width: 280px"> |
| @@ -41,7 +41,7 @@ aclnnStatus aclnnAtan2( | |||
| 41 | 41 | ||
| 42 | - **参数说明:** | 42 | - **参数说明:** |
| 43 | 43 | ||
| 44 | - <table style="undefined;table-layout: fixed; width: 1310px"><colgroup> | 44 | + <table style="table-layout: fixed; width: 1310px"><colgroup> |
| 45 | <col style="width: 101px"> | 45 | <col style="width: 101px"> |
| 46 | <col style="width: 115px"> | 46 | <col style="width: 115px"> |
| 47 | <col style="width: 200px"> | 47 | <col style="width: 200px"> |
| @@ -120,7 +120,7 @@ aclnnStatus aclnnAtan2( | |||
| 120 | 120 | ||
| 121 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../../docs/zh/context/aclnn_return_code.md)。 | 121 | aclnnStatus:返回状态码,具体参见[aclnn返回码](../../../../docs/zh/context/aclnn_return_code.md)。 |
| 122 | 第一段接口会完成入参校验,出现以下场景时报错: | 122 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 123 | - <table style="undefined;table-layout: fixed;width: 979px"><colgroup> | 123 | + <table style="table-layout: fixed;width: 979px"><colgroup> |
| 124 | <col style="width: 272px"> | 124 | <col style="width: 272px"> |
| 125 | <col style="width: 103px"> | 125 | <col style="width: 103px"> |
| 126 | <col style="width: 604px"> | 126 | <col style="width: 604px"> |
| @@ -155,7 +155,7 @@ aclnnStatus aclnnAtan2( | |||
| 155 | 155 | ||
| 156 | - **参数说明:** | 156 | - **参数说明:** |
| 157 | 157 | ||
| 158 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 158 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 159 | <col style="width: 173px"> | 159 | <col style="width: 173px"> |
| 160 | <col style="width: 112px"> | 160 | <col style="width: 112px"> |
| 161 | <col style="width: 668px"> | 161 | <col style="width: 668px"> |
| @@ -18,7 +18,7 @@ $$ | |||
| 18 | 18 | ||
| 19 | ## 参数说明 | 19 | ## 参数说明 |
| 20 | 20 | ||
| 21 | -<table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 21 | +<table style="table-layout: fixed; width: 1494px"><colgroup> |
| 22 | <col style="width: 146px"> | 22 | <col style="width: 146px"> |
| 23 | <col style="width: 110px"> | 23 | <col style="width: 110px"> |
| 24 | <col style="width: 301px"> | 24 | <col style="width: 301px"> |
| @@ -44,7 +44,7 @@ aclnnStatus aclnnAxpyV2( | |||
| 44 | 44 | ||
| 45 | - **参数说明:** | 45 | - **参数说明:** |
| 46 | 46 | ||
| 47 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 47 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 48 | <col style="width: 146px"> | 48 | <col style="width: 146px"> |
| 49 | <col style="width: 110px"> | 49 | <col style="width: 110px"> |
| 50 | <col style="width: 301px"> | 50 | <col style="width: 301px"> |
| @@ -135,7 +135,7 @@ aclnnStatus aclnnAxpyV2( | |||
| 135 | 135 | ||
| 136 | 第一段接口会完成入参校验,出现以下场景时报错: | 136 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 137 | 137 | ||
| 138 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 138 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 139 | <col style="width: 319px"> | 139 | <col style="width: 319px"> |
| 140 | <col style="width: 144px"> | 140 | <col style="width: 144px"> |
| 141 | <col style="width: 671px"> | 141 | <col style="width: 671px"> |
| @@ -169,7 +169,7 @@ aclnnStatus aclnnAxpyV2( | |||
| 169 | ## aclnnAxpyV2 | 169 | ## aclnnAxpyV2 |
| 170 | 170 | ||
| 171 | - **参数说明:** | 171 | - **参数说明:** |
| 172 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 172 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 173 | <col style="width: 173px"> | 173 | <col style="width: 173px"> |
| 174 | <col style="width: 112px"> | 174 | <col style="width: 112px"> |
| 175 | <col style="width: 668px"> | 175 | <col style="width: 668px"> |
| @@ -18,7 +18,7 @@ $$ | |||
| 18 | 18 | ||
| 19 | ## 参数说明 | 19 | ## 参数说明 |
| 20 | 20 | ||
| 21 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 21 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 22 | <col style="width: 100px"> | 22 | <col style="width: 100px"> |
| 23 | <col style="width: 150px"> | 23 | <col style="width: 150px"> |
| 24 | <col style="width: 280px"> | 24 | <col style="width: 280px"> |
| @@ -40,7 +40,7 @@ $$ | |||
| 40 | <td>待进行BitwiseAnd计算的入参,公式中的x1。</td> | 40 | <td>待进行BitwiseAnd计算的入参,公式中的x1。</td> |
| 41 | <td>int16,uint16,int32</td> | 41 | <td>int16,uint16,int32</td> |
| 42 | <td>ND</td> | 42 | <td>ND</td> |
| 43 | - </tr> | 43 | + </tr> |
| 44 | <tr> | 44 | <tr> |
| 45 | <td>x2</td> | 45 | <td>x2</td> |
| 46 | <td>输入</td> | 46 | <td>输入</td> |
| @@ -166,7 +166,7 @@ int main() { | |||
| 166 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_INT64, &out); | 166 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_INT64, &out); |
| 167 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 167 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 168 | 168 | ||
| 169 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 169 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 170 | uint64_t workspaceSize = 0; | 170 | uint64_t workspaceSize = 0; |
| 171 | aclOpExecutor* executor; | 171 | aclOpExecutor* executor; |
| 172 | // 调用aclnnBitwiseAndScalar第一段接口 | 172 | // 调用aclnnBitwiseAndScalar第一段接口 |
| @@ -35,7 +35,7 @@ aclnnStatus aclnnCast( | |||
| 35 | 35 | ||
| 36 | - **参数说明:** | 36 | - **参数说明:** |
| 37 | 37 | ||
| 38 | - <table style="undefined;table-layout: fixed; width: 1495px"><colgroup> | 38 | + <table style="table-layout: fixed; width: 1495px"><colgroup> |
| 39 | <col style="width: 146px"> | 39 | <col style="width: 146px"> |
| 40 | <col style="width: 110px"> | 40 | <col style="width: 110px"> |
| 41 | <col style="width: 301px"> | 41 | <col style="width: 301px"> |
| @@ -117,7 +117,7 @@ aclnnStatus aclnnCast( | |||
| 117 | 117 | ||
| 118 | 第一段接口会完成入参校验,出现以下场景时报错: | 118 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 119 | 119 | ||
| 120 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 120 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 121 | <col style="width: 319px"> | 121 | <col style="width: 319px"> |
| 122 | <col style="width: 144px"> | 122 | <col style="width: 144px"> |
| 123 | <col style="width: 671px"> | 123 | <col style="width: 671px"> |
| @@ -162,7 +162,7 @@ aclnnStatus aclnnCast( | |||
| 162 | ## aclnnCast | 162 | ## aclnnCast |
| 163 | 163 | ||
| 164 | - **参数说明:** | 164 | - **参数说明:** |
| 165 | - <table style="undefined;table-layout: fixed; width: 598px"><colgroup> | 165 | + <table style="table-layout: fixed; width: 598px"><colgroup> |
| 166 | <col style="width: 173px"> | 166 | <col style="width: 173px"> |
| 167 | <col style="width: 173px"> | 167 | <col style="width: 173px"> |
| 168 | <col style="width: 668px"> | 168 | <col style="width: 668px"> |
| @@ -309,10 +309,10 @@ int main() { | |||
| 309 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_DOUBLE, &out); | 309 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_DOUBLE, &out); |
| 310 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 310 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 311 | 311 | ||
| 312 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 312 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 313 | uint64_t workspaceSize = 0; | 313 | uint64_t workspaceSize = 0; |
| 314 | aclOpExecutor* executor; | 314 | aclOpExecutor* executor; |
| 315 | - // 调用aclnnCast第一段接口 | 315 | + // 调用aclnnCastGetWorkspaceSize第一段接口 |
| 316 | ret = aclnnCastGetWorkspaceSize(self, aclDataType::ACL_DOUBLE, out, &workspaceSize, &executor); | 316 | ret = aclnnCastGetWorkspaceSize(self, aclDataType::ACL_DOUBLE, out, &workspaceSize, &executor); |
| 317 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclnnCastGetWorkspaceSize failed. ERROR: %d\n", ret); return ret); | 317 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclnnCastGetWorkspaceSize failed. ERROR: %d\n", ret); return ret); |
| 318 | // 根据第一段接口计算出的workspaceSize申请device内存 | 318 | // 根据第一段接口计算出的workspaceSize申请device内存 |
| @@ -32,8 +32,8 @@ | |||
| 32 | - $\mathrm{cdist} = \sqrt[p]{\sum (x_1 - x_2)^p}$ : $p$ -范数距离 | 32 | - $\mathrm{cdist} = \sqrt[p]{\sum (x_1 - x_2)^p}$ : $p$ -范数距离 |
| 33 | 33 | ||
| 34 | ## 参数说明 | 34 | ## 参数说明 |
| 35 | - | 35 | + |
| 36 | - <table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 36 | + <table style="table-layout: fixed; width: 980px"><colgroup> |
| 37 | <col style="width: 100px"> | 37 | <col style="width: 100px"> |
| 38 | <col style="width: 150px"> | 38 | <col style="width: 150px"> |
| 39 | <col style="width: 280px"> | 39 | <col style="width: 280px"> |
| @@ -96,7 +96,7 @@ | |||
| 96 | 无 | 96 | 无 |
| 97 | 97 | ||
| 98 | ## 调用说明 | 98 | ## 调用说明 |
| 99 | - | 99 | + |
| 100 | | 调用方式 | 样例代码 | 说明 | | 100 | | 调用方式 | 样例代码 | 说明 | |
| 101 | | ---------------- | --------------------------- |----------------------------------------------------------------------------| | 101 | | ---------------- | --------------------------- |----------------------------------------------------------------------------| |
| 102 | | aclnn接口 | [test_aclnn_cdist_backward](examples/test_aclnn_cdist_backward.cpp) | 通过[aclnnCdistBackward](docs/aclnnCdistBackward.md)接口方式调用CdistGrad算子。 | | 102 | | aclnn接口 | [test_aclnn_cdist_backward](examples/test_aclnn_cdist_backward.cpp) | 通过[aclnnCdistBackward](docs/aclnnCdistBackward.md)接口方式调用CdistGrad算子。 | |
| @@ -59,7 +59,7 @@ aclnnStatus aclnnCdistBackward( | |||
| 59 | 59 | ||
| 60 | - **参数说明:** | 60 | - **参数说明:** |
| 61 | 61 | ||
| 62 | - <table style="undefined;table-layout: fixed; width: 1510px"><colgroup> | 62 | + <table style="table-layout: fixed; width: 1510px"><colgroup> |
| 63 | <col style="width: 153px"> | 63 | <col style="width: 153px"> |
| 64 | <col style="width: 120px"> | 64 | <col style="width: 120px"> |
| 65 | <col style="width: 250px"> | 65 | <col style="width: 250px"> |
| @@ -169,7 +169,7 @@ aclnnStatus aclnnCdistBackward( | |||
| 169 | 169 | ||
| 170 | 第一段接口完成入参校验,出现以下场景时报错: | 170 | 第一段接口完成入参校验,出现以下场景时报错: |
| 171 | 171 | ||
| 172 | - <table style="undefined;table-layout: fixed; width: 1110px"><colgroup> | 172 | + <table style="table-layout: fixed; width: 1110px"><colgroup> |
| 173 | <col style="width: 291px"> | 173 | <col style="width: 291px"> |
| 174 | <col style="width: 112px"> | 174 | <col style="width: 112px"> |
| 175 | <col style="width: 707px"> | 175 | <col style="width: 707px"> |
| @@ -201,7 +201,7 @@ aclnnStatus aclnnCdistBackward( | |||
| 201 | 201 | ||
| 202 | - **参数说明:** | 202 | - **参数说明:** |
| 203 | 203 | ||
| 204 | - <table style="undefined;table-layout: fixed; width: 1110px"><colgroup> | 204 | + <table style="table-layout: fixed; width: 1110px"><colgroup> |
| 205 | <col style="width: 153px"> | 205 | <col style="width: 153px"> |
| 206 | <col style="width: 124px"> | 206 | <col style="width: 124px"> |
| 207 | <col style="width: 833px"> | 207 | <col style="width: 833px"> |
| @@ -368,7 +368,7 @@ int main() | |||
| 368 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 368 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 369 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 369 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 370 | 370 | ||
| 371 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 371 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 372 | uint64_t workspaceSize = 0; | 372 | uint64_t workspaceSize = 0; |
| 373 | aclOpExecutor *executor; | 373 | aclOpExecutor *executor; |
| 374 | // 调用aclnnCdistBackward第一段接口 | 374 | // 调用aclnnCdistBackward第一段接口 |
| @@ -58,7 +58,7 @@ aclnnStatus aclnnInplaceCos( | |||
| 58 | 58 | ||
| 59 | - **参数说明**: | 59 | - **参数说明**: |
| 60 | 60 | ||
| 61 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 61 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 62 | <col style="width: 153px"> | 62 | <col style="width: 153px"> |
| 63 | <col style="width: 124px"> | 63 | <col style="width: 124px"> |
| 64 | <col style="width: 212px"> | 64 | <col style="width: 212px"> |
| @@ -129,7 +129,7 @@ aclnnStatus aclnnInplaceCos( | |||
| 129 | 129 | ||
| 130 | 第一段接口完成入参校验,出现以下场景时报错: | 130 | 第一段接口完成入参校验,出现以下场景时报错: |
| 131 | 131 | ||
| 132 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 132 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 133 | <col style="width: 288px"> | 133 | <col style="width: 288px"> |
| 134 | <col style="width: 114px"> | 134 | <col style="width: 114px"> |
| 135 | <col style="width: 747px"> | 135 | <col style="width: 747px"> |
| @@ -164,7 +164,7 @@ aclnnStatus aclnnInplaceCos( | |||
| 164 | 164 | ||
| 165 | - **参数说明**: | 165 | - **参数说明**: |
| 166 | 166 | ||
| 167 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 167 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 168 | <col style="width: 153px"> | 168 | <col style="width: 153px"> |
| 169 | <col style="width: 124px"> | 169 | <col style="width: 124px"> |
| 170 | <col style="width: 872px"> | 170 | <col style="width: 872px"> |
| @@ -207,7 +207,7 @@ aclnnStatus aclnnInplaceCos( | |||
| 207 | 207 | ||
| 208 | - **参数说明**: | 208 | - **参数说明**: |
| 209 | 209 | ||
| 210 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 210 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 211 | <col style="width: 166px"> | 211 | <col style="width: 166px"> |
| 212 | <col style="width: 125px"> | 212 | <col style="width: 125px"> |
| 213 | <col style="width: 295px"> | 213 | <col style="width: 295px"> |
| @@ -268,7 +268,7 @@ aclnnStatus aclnnInplaceCos( | |||
| 268 | 268 | ||
| 269 | 第一段接口完成入参校验,出现以下场景时报错: | 269 | 第一段接口完成入参校验,出现以下场景时报错: |
| 270 | 270 | ||
| 271 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 271 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 272 | <col style="width: 288px"> | 272 | <col style="width: 288px"> |
| 273 | <col style="width: 114px"> | 273 | <col style="width: 114px"> |
| 274 | <col style="width: 747px"> | 274 | <col style="width: 747px"> |
| @@ -300,7 +300,7 @@ aclnnStatus aclnnInplaceCos( | |||
| 300 | 300 | ||
| 301 | - **参数说明**: | 301 | - **参数说明**: |
| 302 | 302 | ||
| 303 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 303 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 304 | <col style="width: 153px"> | 304 | <col style="width: 153px"> |
| 305 | <col style="width: 124px"> | 305 | <col style="width: 124px"> |
| 306 | <col style="width: 872px"> | 306 | <col style="width: 872px"> |
| @@ -442,7 +442,7 @@ int main() { | |||
| 442 | // aclnnCos接口调用示例 | 442 | // aclnnCos接口调用示例 |
| 443 | LOG_PRINT("test aclnnCos\n"); | 443 | LOG_PRINT("test aclnnCos\n"); |
| 444 | 444 | ||
| 445 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 445 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 446 | // 调用aclnnCos第一段接口 | 446 | // 调用aclnnCos第一段接口 |
| 447 | ret = aclnnCosGetWorkspaceSize(self, out, &workspaceSize, &executor); | 447 | ret = aclnnCosGetWorkspaceSize(self, out, &workspaceSize, &executor); |
| 448 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclnnCosGetWorkspaceSize failed. ERROR: %d\n", ret); return ret); | 448 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclnnCosGetWorkspaceSize failed. ERROR: %d\n", ret); return ret); |
| @@ -473,7 +473,7 @@ int main() { | |||
| 473 | // aclnnInplaceCos接口调用示例 | 473 | // aclnnInplaceCos接口调用示例 |
| 474 | LOG_PRINT("\ntest aclnnInplaceCos\n"); | 474 | LOG_PRINT("\ntest aclnnInplaceCos\n"); |
| 475 | 475 | ||
| 476 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 476 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 477 | // 调用aclnnInplaceCos第一段接口 | 477 | // 调用aclnnInplaceCos第一段接口 |
| 478 | ret = aclnnInplaceCosGetWorkspaceSize(self, &workspaceSize, &executor); | 478 | ret = aclnnInplaceCosGetWorkspaceSize(self, &workspaceSize, &executor); |
| 479 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclnnInplaceCosGetWorkspaceSize failed. ERROR: %d\n", ret); return ret); | 479 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclnnInplaceCosGetWorkspaceSize failed. ERROR: %d\n", ret); return ret); |
| @@ -42,7 +42,7 @@ aclnnStatus aclnnLinalgCross( | |||
| 42 | 42 | ||
| 43 | - **参数说明:** | 43 | - **参数说明:** |
| 44 | 44 | ||
| 45 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 45 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 46 | <col style="width: 217px"> | 46 | <col style="width: 217px"> |
| 47 | <col style="width: 125px"> | 47 | <col style="width: 125px"> |
| 48 | <col style="width: 247px"> | 48 | <col style="width: 247px"> |
| @@ -132,7 +132,7 @@ aclnnStatus aclnnLinalgCross( | |||
| 132 | 132 | ||
| 133 | 第一段接口完成入参校验,出现如下场景时报错: | 133 | 第一段接口完成入参校验,出现如下场景时报错: |
| 134 | 134 | ||
| 135 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 135 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 136 | <col style="width: 300px"> | 136 | <col style="width: 300px"> |
| 137 | <col style="width: 134px"> | 137 | <col style="width: 134px"> |
| 138 | <col style="width: 716px"> | 138 | <col style="width: 716px"> |
| @@ -176,7 +176,7 @@ aclnnStatus aclnnLinalgCross( | |||
| 176 | 176 | ||
| 177 | - **参数说明:** | 177 | - **参数说明:** |
| 178 | 178 | ||
| 179 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 179 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 180 | <col style="width: 184px"> | 180 | <col style="width: 184px"> |
| 181 | <col style="width: 134px"> | 181 | <col style="width: 134px"> |
| 182 | <col style="width: 833px"> | 182 | <col style="width: 833px"> |
| @@ -20,7 +20,7 @@ $$ | |||
| 20 | 20 | ||
| 21 | ## 参数说明 | 21 | ## 参数说明 |
| 22 | 22 | ||
| 23 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 23 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 24 | <col style="width: 100px"> | 24 | <col style="width: 100px"> |
| 25 | <col style="width: 150px"> | 25 | <col style="width: 150px"> |
| 26 | <col style="width: 280px"> | 26 | <col style="width: 280px"> |
| @@ -42,7 +42,7 @@ $$ | |||
| 42 | <td>待提取对角线元素的输入矩阵,形状必须为 [N, N] 的方阵。</td> | 42 | <td>待提取对角线元素的输入矩阵,形状必须为 [N, N] 的方阵。</td> |
| 43 | <td>float16,float32,int32</td> | 43 | <td>float16,float32,int32</td> |
| 44 | <td>ND</td> | 44 | <td>ND</td> |
| 45 | - </tr> | 45 | + </tr> |
| 46 | <tr> | 46 | <tr> |
| 47 | <td>y</td> | 47 | <td>y</td> |
| 48 | <td>输出</td> | 48 | <td>输出</td> |
| @@ -61,7 +61,7 @@ aclnnStatus aclnnInplaceEqScalar( | |||
| 61 | 61 | ||
| 62 | - **参数说明:** | 62 | - **参数说明:** |
| 63 | 63 | ||
| 64 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 64 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 65 | <col style="width: 168px"> | 65 | <col style="width: 168px"> |
| 66 | <col style="width: 136px"> | 66 | <col style="width: 136px"> |
| 67 | <col style="width: 213px"> | 67 | <col style="width: 213px"> |
| @@ -154,7 +154,7 @@ aclnnStatus aclnnInplaceEqScalar( | |||
| 154 | 154 | ||
| 155 | 第一段接口完成入参校验,出现以下场景时报错: | 155 | 第一段接口完成入参校验,出现以下场景时报错: |
| 156 | 156 | ||
| 157 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 157 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 158 | <col style="width: 272px"> | 158 | <col style="width: 272px"> |
| 159 | <col style="width: 114px"> | 159 | <col style="width: 114px"> |
| 160 | <col style="width: 764px"> | 160 | <col style="width: 764px"> |
| @@ -192,7 +192,7 @@ aclnnStatus aclnnInplaceEqScalar( | |||
| 192 | 192 | ||
| 193 | - **参数说明:** | 193 | - **参数说明:** |
| 194 | 194 | ||
| 195 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 195 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 196 | <col style="width: 153px"> | 196 | <col style="width: 153px"> |
| 197 | <col style="width: 124px"> | 197 | <col style="width: 124px"> |
| 198 | <col style="width: 873px"> | 198 | <col style="width: 873px"> |
| @@ -235,7 +235,7 @@ aclnnStatus aclnnInplaceEqScalar( | |||
| 235 | 235 | ||
| 236 | - **参数说明:** | 236 | - **参数说明:** |
| 237 | 237 | ||
| 238 | - <table style="undefined;table-layout: fixed; width: 1502px"><colgroup> | 238 | + <table style="table-layout: fixed; width: 1502px"><colgroup> |
| 239 | <col style="width: 167px"> | 239 | <col style="width: 167px"> |
| 240 | <col style="width: 135px"> | 240 | <col style="width: 135px"> |
| 241 | <col style="width: 267px"> | 241 | <col style="width: 267px"> |
| @@ -316,7 +316,7 @@ aclnnStatus aclnnInplaceEqScalar( | |||
| 316 | 316 | ||
| 317 | 第一段接口完成入参校验,出现以下场景时报错: | 317 | 第一段接口完成入参校验,出现以下场景时报错: |
| 318 | 318 | ||
| 319 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 319 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 320 | <col style="width: 272px"> | 320 | <col style="width: 272px"> |
| 321 | <col style="width: 114px"> | 321 | <col style="width: 114px"> |
| 322 | <col style="width: 764px"> | 322 | <col style="width: 764px"> |
| @@ -351,7 +351,7 @@ aclnnStatus aclnnInplaceEqScalar( | |||
| 351 | 351 | ||
| 352 | - **参数说明:** | 352 | - **参数说明:** |
| 353 | 353 | ||
| 354 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 354 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 355 | <col style="width: 153px"> | 355 | <col style="width: 153px"> |
| 356 | <col style="width: 124px"> | 356 | <col style="width: 124px"> |
| 357 | <col style="width: 873px"> | 357 | <col style="width: 873px"> |
| @@ -61,7 +61,7 @@ aclnnStatus aclnnInplaceEqTensor( | |||
| 61 | 61 | ||
| 62 | - **参数说明:** | 62 | - **参数说明:** |
| 63 | 63 | ||
| 64 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 64 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 65 | <col style="width: 168px"> | 65 | <col style="width: 168px"> |
| 66 | <col style="width: 136px"> | 66 | <col style="width: 136px"> |
| 67 | <col style="width: 215px"> | 67 | <col style="width: 215px"> |
| @@ -151,7 +151,7 @@ aclnnStatus aclnnInplaceEqTensor( | |||
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现以下场景时报错: | 152 | 第一段接口完成入参校验,出现以下场景时报错: |
| 153 | 153 | ||
| 154 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 154 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 155 | <col style="width: 281px"> | 155 | <col style="width: 281px"> |
| 156 | <col style="width: 119px"> | 156 | <col style="width: 119px"> |
| 157 | <col style="width: 750px"> | 157 | <col style="width: 750px"> |
| @@ -192,7 +192,7 @@ aclnnStatus aclnnInplaceEqTensor( | |||
| 192 | 192 | ||
| 193 | - **参数说明:** | 193 | - **参数说明:** |
| 194 | 194 | ||
| 195 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 195 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 196 | <col style="width: 168px"> | 196 | <col style="width: 168px"> |
| 197 | <col style="width: 128px"> | 197 | <col style="width: 128px"> |
| 198 | <col style="width: 854px"> | 198 | <col style="width: 854px"> |
| @@ -235,7 +235,7 @@ aclnnStatus aclnnInplaceEqTensor( | |||
| 235 | 235 | ||
| 236 | - **参数说明:** | 236 | - **参数说明:** |
| 237 | 237 | ||
| 238 | - <table style="undefined;table-layout: fixed; width: 1542px"><colgroup> | 238 | + <table style="table-layout: fixed; width: 1542px"><colgroup> |
| 239 | <col style="width: 166px"> | 239 | <col style="width: 166px"> |
| 240 | <col style="width: 134px"> | 240 | <col style="width: 134px"> |
| 241 | <col style="width: 212px"> | 241 | <col style="width: 212px"> |
| @@ -313,7 +313,7 @@ aclnnStatus aclnnInplaceEqTensor( | |||
| 313 | 313 | ||
| 314 | 第一段接口完成入参校验,出现以下场景时报错: | 314 | 第一段接口完成入参校验,出现以下场景时报错: |
| 315 | 315 | ||
| 316 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 316 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 317 | <col style="width: 281px"> | 317 | <col style="width: 281px"> |
| 318 | <col style="width: 119px"> | 318 | <col style="width: 119px"> |
| 319 | <col style="width: 750px"> | 319 | <col style="width: 750px"> |
| @@ -357,7 +357,7 @@ aclnnStatus aclnnInplaceEqTensor( | |||
| 357 | 357 | ||
| 358 | - **参数说明:** | 358 | - **参数说明:** |
| 359 | 359 | ||
| 360 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 360 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 361 | <col style="width: 168px"> | 361 | <col style="width: 168px"> |
| 362 | <col style="width: 128px"> | 362 | <col style="width: 128px"> |
| 363 | <col style="width: 854px"> | 363 | <col style="width: 854px"> |
| @@ -37,7 +37,7 @@ aclnnStatus aclnnIsInScalarTensor( | |||
| 37 | 37 | ||
| 38 | - **参数说明:** | 38 | - **参数说明:** |
| 39 | 39 | ||
| 40 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 40 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 41 | <col style="width: 217px"> | 41 | <col style="width: 217px"> |
| 42 | <col style="width: 125px"> | 42 | <col style="width: 125px"> |
| 43 | <col style="width: 247px"> | 43 | <col style="width: 247px"> |
| @@ -139,7 +139,7 @@ aclnnStatus aclnnIsInScalarTensor( | |||
| 139 | 139 | ||
| 140 | 第一段接口完成入参校验,出现以下场景时报错: | 140 | 第一段接口完成入参校验,出现以下场景时报错: |
| 141 | 141 | ||
| 142 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 142 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 143 | <col style="width: 300px"> | 143 | <col style="width: 300px"> |
| 144 | <col style="width: 134px"> | 144 | <col style="width: 134px"> |
| 145 | <col style="width: 716px"> | 145 | <col style="width: 716px"> |
| @@ -173,7 +173,7 @@ aclnnStatus aclnnIsInScalarTensor( | |||
| 173 | 173 | ||
| 174 | - **参数说明:** | 174 | - **参数说明:** |
| 175 | 175 | ||
| 176 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 176 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 177 | <col style="width: 184px"> | 177 | <col style="width: 184px"> |
| 178 | <col style="width: 134px"> | 178 | <col style="width: 134px"> |
| 179 | <col style="width: 833px"> | 179 | <col style="width: 833px"> |
| @@ -37,7 +37,7 @@ aclnnStatus aclnnIsInTensorScalar( | |||
| 37 | 37 | ||
| 38 | - **参数说明:** | 38 | - **参数说明:** |
| 39 | 39 | ||
| 40 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 40 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 41 | <col style="width: 217px"> | 41 | <col style="width: 217px"> |
| 42 | <col style="width: 125px"> | 42 | <col style="width: 125px"> |
| 43 | <col style="width: 247px"> | 43 | <col style="width: 247px"> |
| @@ -139,7 +139,7 @@ aclnnStatus aclnnIsInTensorScalar( | |||
| 139 | 139 | ||
| 140 | 第一段接口完成入参校验,出现以下场景时报错: | 140 | 第一段接口完成入参校验,出现以下场景时报错: |
| 141 | 141 | ||
| 142 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 142 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 143 | <col style="width: 300px"> | 143 | <col style="width: 300px"> |
| 144 | <col style="width: 134px"> | 144 | <col style="width: 134px"> |
| 145 | <col style="width: 716px"> | 145 | <col style="width: 716px"> |
| @@ -170,7 +170,7 @@ aclnnStatus aclnnIsInTensorScalar( | |||
| 170 | 170 | ||
| 171 | - **参数说明:** | 171 | - **参数说明:** |
| 172 | 172 | ||
| 173 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 173 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 174 | <col style="width: 184px"> | 174 | <col style="width: 184px"> |
| 175 | <col style="width: 134px"> | 175 | <col style="width: 134px"> |
| 176 | <col style="width: 833px"> | 176 | <col style="width: 833px"> |
| @@ -18,7 +18,7 @@ $$ | |||
| 18 | 18 | ||
| 19 | ## 参数说明 | 19 | ## 参数说明 |
| 20 | 20 | ||
| 21 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 21 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 22 | <col style="width: 100px"> | 22 | <col style="width: 100px"> |
| 23 | <col style="width: 150px"> | 23 | <col style="width: 150px"> |
| 24 | <col style="width: 280px"> | 24 | <col style="width: 280px"> |
| @@ -17,7 +17,7 @@ $$ | |||
| 17 | 17 | ||
| 18 | ## 参数说明 | 18 | ## 参数说明 |
| 19 | 19 | ||
| 20 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 20 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 21 | <col style="width: 100px"> | 21 | <col style="width: 100px"> |
| 22 | <col style="width: 150px"> | 22 | <col style="width: 150px"> |
| 23 | <col style="width: 280px"> | 23 | <col style="width: 280px"> |
| @@ -57,7 +57,7 @@ aclnnStatus aclnnInplaceExp( | |||
| 57 | 57 | ||
| 58 | - **参数说明:** | 58 | - **参数说明:** |
| 59 | 59 | ||
| 60 | - <table style="undefined;table-layout: fixed; width: 1549px"><colgroup> | 60 | + <table style="table-layout: fixed; width: 1549px"><colgroup> |
| 61 | <col style="width: 168px"> | 61 | <col style="width: 168px"> |
| 62 | <col style="width: 136px"> | 62 | <col style="width: 136px"> |
| 63 | <col style="width: 258px"> | 63 | <col style="width: 258px"> |
| @@ -128,7 +128,7 @@ aclnnStatus aclnnInplaceExp( | |||
| 128 | 128 | ||
| 129 | 第一段接口完成入参校验,出现如下场景时报错: | 129 | 第一段接口完成入参校验,出现如下场景时报错: |
| 130 | 130 | ||
| 131 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 131 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 132 | <col style="width: 281px"> | 132 | <col style="width: 281px"> |
| 133 | <col style="width: 119px"> | 133 | <col style="width: 119px"> |
| 134 | <col style="width: 750px"> | 134 | <col style="width: 750px"> |
| @@ -166,7 +166,7 @@ aclnnStatus aclnnInplaceExp( | |||
| 166 | 166 | ||
| 167 | - **参数说明:** | 167 | - **参数说明:** |
| 168 | 168 | ||
| 169 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 169 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 170 | <col style="width: 168px"> | 170 | <col style="width: 168px"> |
| 171 | <col style="width: 128px"> | 171 | <col style="width: 128px"> |
| 172 | <col style="width: 854px"> | 172 | <col style="width: 854px"> |
| @@ -209,7 +209,7 @@ aclnnStatus aclnnInplaceExp( | |||
| 209 | 209 | ||
| 210 | - **参数说明:** | 210 | - **参数说明:** |
| 211 | 211 | ||
| 212 | - <table style="undefined;table-layout: fixed; width: 1488px"><colgroup> | 212 | + <table style="table-layout: fixed; width: 1488px"><colgroup> |
| 213 | <col style="width: 168px"> | 213 | <col style="width: 168px"> |
| 214 | <col style="width: 136px"> | 214 | <col style="width: 136px"> |
| 215 | <col style="width: 330px"> | 215 | <col style="width: 330px"> |
| @@ -270,7 +270,7 @@ aclnnStatus aclnnInplaceExp( | |||
| 270 | 270 | ||
| 271 | 第一段接口完成入参校验,出现如下场景时报错: | 271 | 第一段接口完成入参校验,出现如下场景时报错: |
| 272 | 272 | ||
| 273 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 273 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 274 | <col style="width: 281px"> | 274 | <col style="width: 281px"> |
| 275 | <col style="width: 119px"> | 275 | <col style="width: 119px"> |
| 276 | <col style="width: 750px"> | 276 | <col style="width: 750px"> |
| @@ -302,7 +302,7 @@ aclnnStatus aclnnInplaceExp( | |||
| 302 | 302 | ||
| 303 | - **参数说明:** | 303 | - **参数说明:** |
| 304 | 304 | ||
| 305 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 305 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 306 | <col style="width: 168px"> | 306 | <col style="width: 168px"> |
| 307 | <col style="width: 128px"> | 307 | <col style="width: 128px"> |
| 308 | <col style="width: 854px"> | 308 | <col style="width: 854px"> |
| @@ -434,7 +434,7 @@ int main() { | |||
| 434 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 434 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 435 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 435 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 436 | 436 | ||
| 437 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 437 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 438 | uint64_t workspaceSize = 0; | 438 | uint64_t workspaceSize = 0; |
| 439 | aclOpExecutor* executor; | 439 | aclOpExecutor* executor; |
| 440 | // 调用aclnnExp第一段接口 | 440 | // 调用aclnnExp第一段接口 |
| @@ -19,7 +19,7 @@ $$ | |||
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 23 | <col style="width: 100px"> | 23 | <col style="width: 100px"> |
| 24 | <col style="width: 150px"> | 24 | <col style="width: 150px"> |
| 25 | <col style="width: 280px"> | 25 | <col style="width: 280px"> |
| @@ -41,7 +41,7 @@ aclnnStatus aclnnExpandv( | |||
| 41 | 41 | ||
| 42 | - **参数说明:** | 42 | - **参数说明:** |
| 43 | 43 | ||
| 44 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 44 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 45 | <col style="width: 146px"> | 45 | <col style="width: 146px"> |
| 46 | <col style="width: 110px"> | 46 | <col style="width: 110px"> |
| 47 | <col style="width: 301px"> | 47 | <col style="width: 301px"> |
| @@ -121,7 +121,7 @@ aclnnStatus aclnnExpandv( | |||
| 121 | 121 | ||
| 122 | 第一段接口会完成入参校验,出现以下场景时报错: | 122 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 123 | 123 | ||
| 124 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 124 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 125 | <col style="width: 319px"> | 125 | <col style="width: 319px"> |
| 126 | <col style="width: 144px"> | 126 | <col style="width: 144px"> |
| 127 | <col style="width: 671px"> | 127 | <col style="width: 671px"> |
| @@ -156,7 +156,7 @@ aclnnStatus aclnnExpandv( | |||
| 156 | 156 | ||
| 157 | - **参数说明:** | 157 | - **参数说明:** |
| 158 | 158 | ||
| 159 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 159 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 160 | <col style="width: 173px"> | 160 | <col style="width: 173px"> |
| 161 | <col style="width: 112px"> | 161 | <col style="width: 112px"> |
| 162 | <col style="width: 668px"> | 162 | <col style="width: 668px"> |
| @@ -16,7 +16,7 @@ $out_i=⌊ input_i ⌋$ | |||
| 16 | 16 | ||
| 17 | ## 参数说明 | 17 | ## 参数说明 |
| 18 | 18 | ||
| 19 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 19 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 20 | <col style="width: 100px"> | 20 | <col style="width: 100px"> |
| 21 | <col style="width: 150px"> | 21 | <col style="width: 150px"> |
| 22 | <col style="width: 280px"> | 22 | <col style="width: 280px"> |
| @@ -119,7 +119,7 @@ void PrintOutResult(std::vector<int64_t> &shape, void** deviceAddr) { | |||
| 119 | *deviceAddr, size * sizeof(resultData[0]), ACL_MEMCPY_DEVICE_TO_HOST); | 119 | *deviceAddr, size * sizeof(resultData[0]), ACL_MEMCPY_DEVICE_TO_HOST); |
| 120 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); | 120 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); |
| 121 | for (int64_t i = 0; i < size; i++) { | 121 | for (int64_t i = 0; i < size; i++) { |
| 122 | - LOG_PRINT("mean result[%ld] is: %f\n", i, resultData[i]); | 122 | + LOG_PRINT("result[%ld] is: %f\n", i, resultData[i]); |
| 123 | } | 123 | } |
| 124 | } | 124 | } |
| 125 | 125 | ||
| @@ -46,7 +46,7 @@ aclnnStatus aclnnFloorDiv( | |||
| 46 | 46 | ||
| 47 | - **参数说明:** | 47 | - **参数说明:** |
| 48 | 48 | ||
| 49 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 49 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 50 | <col style="width: 146px"> | 50 | <col style="width: 146px"> |
| 51 | <col style="width: 110px"> | 51 | <col style="width: 110px"> |
| 52 | <col style="width: 301px"> | 52 | <col style="width: 301px"> |
| @@ -127,7 +127,7 @@ aclnnStatus aclnnFloorDiv( | |||
| 127 | 127 | ||
| 128 | 第一段接口会完成入参校验,出现以下场景时报错: | 128 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 129 | 129 | ||
| 130 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 130 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 131 | <col style="width: 319px"> | 131 | <col style="width: 319px"> |
| 132 | <col style="width: 144px"> | 132 | <col style="width: 144px"> |
| 133 | <col style="width: 671px"> | 133 | <col style="width: 671px"> |
| @@ -158,7 +158,7 @@ aclnnStatus aclnnFloorDiv( | |||
| 158 | ## aclnnFloorDiv | 158 | ## aclnnFloorDiv |
| 159 | 159 | ||
| 160 | - **参数说明:** | 160 | - **参数说明:** |
| 161 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 161 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 162 | <col style="width: 173px"> | 162 | <col style="width: 173px"> |
| 163 | <col style="width: 112px"> | 163 | <col style="width: 112px"> |
| 164 | <col style="width: 668px"> | 164 | <col style="width: 668px"> |
| @@ -243,9 +243,9 @@ void PrintOutResult(std::vector<int64_t>& shape, void** deviceAddr) | |||
| 243 | ACL_MEMCPY_DEVICE_TO_HOST); | 243 | ACL_MEMCPY_DEVICE_TO_HOST); |
| 244 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); | 244 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); |
| 245 | for (int64_t i = 0; i < size; i++) { | 245 | for (int64_t i = 0; i < size; i++) { |
| 246 | - LOG_PRINT("mean result[%ld] is: ", i); // float | 246 | + LOG_PRINT("result[%ld] is: ", i); // float |
| 247 | std::cout << (int)resultData[i] << std::endl; | 247 | std::cout << (int)resultData[i] << std::endl; |
| 248 | - //LOG_PRINT("mean result[%ld] is: %d\n", i, resultData[i]); // int | 248 | + //LOG_PRINT("result[%ld] is: %d\n", i, resultData[i]); // int |
| 249 | } | 249 | } |
| 250 | } | 250 | } |
| 251 | 251 | ||
| @@ -325,7 +325,7 @@ int main() | |||
| 325 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, ACL_TYPE, &out); | 325 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, ACL_TYPE, &out); |
| 326 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 326 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 327 | 327 | ||
| 328 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 328 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 329 | uint64_t workspaceSize = 0; | 329 | uint64_t workspaceSize = 0; |
| 330 | aclOpExecutor* executor; | 330 | aclOpExecutor* executor; |
| 331 | 331 | ||
| @@ -46,7 +46,7 @@ aclnnStatus aclnnFloorDiv( | |||
| 46 | 46 | ||
| 47 | - **参数说明:** | 47 | - **参数说明:** |
| 48 | 48 | ||
| 49 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 49 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 50 | <col style="width: 146px"> | 50 | <col style="width: 146px"> |
| 51 | <col style="width: 110px"> | 51 | <col style="width: 110px"> |
| 52 | <col style="width: 301px"> | 52 | <col style="width: 301px"> |
| @@ -127,7 +127,7 @@ aclnnStatus aclnnFloorDiv( | |||
| 127 | 127 | ||
| 128 | 第一段接口会完成入参校验,出现以下场景时报错: | 128 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 129 | 129 | ||
| 130 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 130 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 131 | <col style="width: 319px"> | 131 | <col style="width: 319px"> |
| 132 | <col style="width: 144px"> | 132 | <col style="width: 144px"> |
| 133 | <col style="width: 671px"> | 133 | <col style="width: 671px"> |
| @@ -158,7 +158,7 @@ aclnnStatus aclnnFloorDiv( | |||
| 158 | ## aclnnFloorDiv | 158 | ## aclnnFloorDiv |
| 159 | 159 | ||
| 160 | - **参数说明:** | 160 | - **参数说明:** |
| 161 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 161 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 162 | <col style="width: 173px"> | 162 | <col style="width: 173px"> |
| 163 | <col style="width: 112px"> | 163 | <col style="width: 112px"> |
| 164 | <col style="width: 668px"> | 164 | <col style="width: 668px"> |
| @@ -243,9 +243,9 @@ void PrintOutResult(std::vector<int64_t>& shape, void** deviceAddr) | |||
| 243 | ACL_MEMCPY_DEVICE_TO_HOST); | 243 | ACL_MEMCPY_DEVICE_TO_HOST); |
| 244 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); | 244 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); |
| 245 | for (int64_t i = 0; i < size; i++) { | 245 | for (int64_t i = 0; i < size; i++) { |
| 246 | - LOG_PRINT("mean result[%ld] is: ", i); // float | 246 | + LOG_PRINT("result[%ld] is: ", i); // float |
| 247 | std::cout << (int)resultData[i] << std::endl; | 247 | std::cout << (int)resultData[i] << std::endl; |
| 248 | - //LOG_PRINT("mean result[%ld] is: %d\n", i, resultData[i]); // int | 248 | + //LOG_PRINT("result[%ld] is: %d\n", i, resultData[i]); // int |
| 249 | } | 249 | } |
| 250 | } | 250 | } |
| 251 | 251 | ||
| @@ -325,7 +325,7 @@ int main() | |||
| 325 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, ACL_TYPE, &out); | 325 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, ACL_TYPE, &out); |
| 326 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 326 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 327 | 327 | ||
| 328 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 328 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 329 | uint64_t workspaceSize = 0; | 329 | uint64_t workspaceSize = 0; |
| 330 | aclOpExecutor* executor; | 330 | aclOpExecutor* executor; |
| 331 | 331 | ||
| @@ -18,7 +18,7 @@ $$ | |||
| 18 | 18 | ||
| 19 | ## 参数说明 | 19 | ## 参数说明 |
| 20 | 20 | ||
| 21 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 21 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 22 | <col style="width: 100px"> | 22 | <col style="width: 100px"> |
| 23 | <col style="width: 150px"> | 23 | <col style="width: 150px"> |
| 24 | <col style="width: 280px"> | 24 | <col style="width: 280px"> |
| @@ -40,7 +40,7 @@ $$ | |||
| 40 | <td>待进行FloorMod计算的被除数入参。</td> | 40 | <td>待进行FloorMod计算的被除数入参。</td> |
| 41 | <td>FLOAT、FLOAT16、BFLOAT16、INT32</td> | 41 | <td>FLOAT、FLOAT16、BFLOAT16、INT32</td> |
| 42 | <td>ND</td> | 42 | <td>ND</td> |
| 43 | - </tr> | 43 | + </tr> |
| 44 | <tr> | 44 | <tr> |
| 45 | <td>x2</td> | 45 | <td>x2</td> |
| 46 | <td>输入</td> | 46 | <td>输入</td> |
| @@ -40,7 +40,7 @@ aclnnStatus aclnnRemainderTensorTensor( | |||
| 40 | 40 | ||
| 41 | - **参数说明:** | 41 | - **参数说明:** |
| 42 | 42 | ||
| 43 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 43 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 44 | <col style="width: 146px"> | 44 | <col style="width: 146px"> |
| 45 | <col style="width: 110px"> | 45 | <col style="width: 110px"> |
| 46 | <col style="width: 301px"> | 46 | <col style="width: 301px"> |
| @@ -121,7 +121,7 @@ aclnnStatus aclnnRemainderTensorTensor( | |||
| 121 | 121 | ||
| 122 | 第一段接口会完成入参校验,出现以下场景时报错: | 122 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 123 | 123 | ||
| 124 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 124 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 125 | <col style="width: 319px"> | 125 | <col style="width: 319px"> |
| 126 | <col style="width: 144px"> | 126 | <col style="width: 144px"> |
| 127 | <col style="width: 671px"> | 127 | <col style="width: 671px"> |
| @@ -156,7 +156,7 @@ aclnnStatus aclnnRemainderTensorTensor( | |||
| 156 | 156 | ||
| 157 | - **参数说明:** | 157 | - **参数说明:** |
| 158 | 158 | ||
| 159 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 159 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 160 | <col style="width: 173px"> | 160 | <col style="width: 173px"> |
| 161 | <col style="width: 112px"> | 161 | <col style="width: 112px"> |
| 162 | <col style="width: 668px"> | 162 | <col style="width: 668px"> |
| @@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | ## 参数说明 | 28 | ## 参数说明 |
| 29 | 29 | ||
| 30 | -<table style="undefined;table-layout: fixed; width: 880px"><colgroup> | 30 | +<table style="table-layout: fixed; width: 880px"><colgroup> |
| 31 | <col style="width: 100px"> | 31 | <col style="width: 100px"> |
| 32 | <col style="width: 150px"> | 32 | <col style="width: 150px"> |
| 33 | <col style="width: 320px"> | 33 | <col style="width: 320px"> |
| @@ -63,7 +63,7 @@ aclnnStatus aclnnFusedMulAddN( | |||
| 63 | 63 | ||
| 64 | - **参数说明**: | 64 | - **参数说明**: |
| 65 | 65 | ||
| 66 | -<table style="undefined;table-layout: fixed; width: 1000px"><colgroup> | 66 | +<table style="table-layout: fixed; width: 1000px"><colgroup> |
| 67 | <col style="width: 130px"> | 67 | <col style="width: 130px"> |
| 68 | <col style="width: 120px"> | 68 | <col style="width: 120px"> |
| 69 | <col style="width: 350px"> | 69 | <col style="width: 350px"> |
| @@ -140,7 +140,7 @@ aclnnStatus aclnnFusedMulAddN( | |||
| 140 | 140 | ||
| 141 | 第一段接口完成入参校验,出现以下场景时报错: | 141 | 第一段接口完成入参校验,出现以下场景时报错: |
| 142 | 142 | ||
| 143 | -<table style="undefined;table-layout: fixed; width: 1000px"><colgroup> | 143 | +<table style="table-layout: fixed; width: 1000px"><colgroup> |
| 144 | <col style="width: 250px"> | 144 | <col style="width: 250px"> |
| 145 | <col style="width: 110px"> | 145 | <col style="width: 110px"> |
| 146 | <col style="width: 540px"> | 146 | <col style="width: 540px"> |
| @@ -177,7 +177,7 @@ aclnnStatus aclnnFusedMulAddN( | |||
| 177 | 177 | ||
| 178 | - **参数说明**: | 178 | - **参数说明**: |
| 179 | 179 | ||
| 180 | -<table style="undefined;table-layout: fixed; width: 1000px"><colgroup> | 180 | +<table style="table-layout: fixed; width: 1000px"><colgroup> |
| 181 | <col style="width: 130px"> | 181 | <col style="width: 130px"> |
| 182 | <col style="width: 120px"> | 182 | <col style="width: 120px"> |
| 183 | <col style="width: 480px"> | 183 | <col style="width: 480px"> |
| @@ -12,14 +12,14 @@ | |||
| 12 | 12 | ||
| 13 | - 计算公式: | 13 | - 计算公式: |
| 14 | 对于入参self,和比较标量other,gt可以用如下数学公式表示: | 14 | 对于入参self,和比较标量other,gt可以用如下数学公式表示: |
| 15 | - | 15 | + |
| 16 | $$ | 16 | $$ |
| 17 | y_{i}= (x1_i > x2_i) ? True : False | 17 | y_{i}= (x1_i > x2_i) ? True : False |
| 18 | $$ | 18 | $$ |
| 19 | 19 | ||
| 20 | ## 参数说明 | 20 | ## 参数说明 |
| 21 | 21 | ||
| 22 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 22 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 23 | <col style="width: 100px"> | 23 | <col style="width: 100px"> |
| 24 | <col style="width: 150px"> | 24 | <col style="width: 150px"> |
| 25 | <col style="width: 190px"> | 25 | <col style="width: 190px"> |
| @@ -58,7 +58,7 @@ aclnnStatus aclnnInplaceGtScalar( | |||
| 58 | 58 | ||
| 59 | - **参数说明:** | 59 | - **参数说明:** |
| 60 | 60 | ||
| 61 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 61 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 62 | <col style="width: 154px"> | 62 | <col style="width: 154px"> |
| 63 | <col style="width: 125px"> | 63 | <col style="width: 125px"> |
| 64 | <col style="width: 291px"> | 64 | <col style="width: 291px"> |
| @@ -141,7 +141,7 @@ aclnnStatus aclnnInplaceGtScalar( | |||
| 141 | 141 | ||
| 142 | 第一段接口完成入参校验,出现以下场景时报错: | 142 | 第一段接口完成入参校验,出现以下场景时报错: |
| 143 | 143 | ||
| 144 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 144 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 145 | <col style="width: 272px"> | 145 | <col style="width: 272px"> |
| 146 | <col style="width: 114px"> | 146 | <col style="width: 114px"> |
| 147 | <col style="width: 764px"> | 147 | <col style="width: 764px"> |
| @@ -179,7 +179,7 @@ aclnnStatus aclnnInplaceGtScalar( | |||
| 179 | 179 | ||
| 180 | - **参数说明:** | 180 | - **参数说明:** |
| 181 | 181 | ||
| 182 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 182 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 183 | <col style="width: 153px"> | 183 | <col style="width: 153px"> |
| 184 | <col style="width: 124px"> | 184 | <col style="width: 124px"> |
| 185 | <col style="width: 873px"> | 185 | <col style="width: 873px"> |
| @@ -222,7 +222,7 @@ aclnnStatus aclnnInplaceGtScalar( | |||
| 222 | 222 | ||
| 223 | - **参数说明:** | 223 | - **参数说明:** |
| 224 | 224 | ||
| 225 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 225 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 226 | <col style="width: 154px"> | 226 | <col style="width: 154px"> |
| 227 | <col style="width: 125px"> | 227 | <col style="width: 125px"> |
| 228 | <col style="width: 291px"> | 228 | <col style="width: 291px"> |
| @@ -295,7 +295,7 @@ aclnnStatus aclnnInplaceGtScalar( | |||
| 295 | 295 | ||
| 296 | 第一段接口完成入参校验,出现以下场景时报错: | 296 | 第一段接口完成入参校验,出现以下场景时报错: |
| 297 | 297 | ||
| 298 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 298 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 299 | <col style="width: 272px"> | 299 | <col style="width: 272px"> |
| 300 | <col style="width: 114px"> | 300 | <col style="width: 114px"> |
| 301 | <col style="width: 764px"> | 301 | <col style="width: 764px"> |
| @@ -330,7 +330,7 @@ aclnnStatus aclnnInplaceGtScalar( | |||
| 330 | 330 | ||
| 331 | - **参数说明:** | 331 | - **参数说明:** |
| 332 | 332 | ||
| 333 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 333 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 334 | <col style="width: 153px"> | 334 | <col style="width: 153px"> |
| 335 | <col style="width: 124px"> | 335 | <col style="width: 124px"> |
| 336 | <col style="width: 873px"> | 336 | <col style="width: 873px"> |
| @@ -463,7 +463,7 @@ int ExecuteGtScalarOperator(aclrtStream stream) { | |||
| 463 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_BOOL, &out); | 463 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_BOOL, &out); |
| 464 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 464 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 465 | 465 | ||
| 466 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 466 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 467 | uint64_t workspaceSize = 0; | 467 | uint64_t workspaceSize = 0; |
| 468 | aclOpExecutor* executor; | 468 | aclOpExecutor* executor; |
| 469 | // 调用aclnnGtScalar第一段接口 | 469 | // 调用aclnnGtScalar第一段接口 |
| @@ -612,7 +612,7 @@ int main() { | |||
| 612 | other = aclCreateScalar(&otherValue, aclDataType::ACL_DOUBLE); | 612 | other = aclCreateScalar(&otherValue, aclDataType::ACL_DOUBLE); |
| 613 | CHECK_RET(other != nullptr, return ret); | 613 | CHECK_RET(other != nullptr, return ret); |
| 614 | 614 | ||
| 615 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 615 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 616 | uint64_t workspaceSize = 0; | 616 | uint64_t workspaceSize = 0; |
| 617 | aclOpExecutor* executor; | 617 | aclOpExecutor* executor; |
| 618 | // 调用aclnnInplaceGtScalar第一段接口 | 618 | // 调用aclnnInplaceGtScalar第一段接口 |
| @@ -56,7 +56,7 @@ aclnnStatus aclnnInplaceGtTensor( | |||
| 56 | 56 | ||
| 57 | - **参数说明:** | 57 | - **参数说明:** |
| 58 | 58 | ||
| 59 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 59 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 60 | <col style="width: 154px"> | 60 | <col style="width: 154px"> |
| 61 | <col style="width: 125px"> | 61 | <col style="width: 125px"> |
| 62 | <col style="width: 291px"> | 62 | <col style="width: 291px"> |
| @@ -139,7 +139,7 @@ aclnnStatus aclnnInplaceGtTensor( | |||
| 139 | 139 | ||
| 140 | 第一段接口完成入参校验,出现以下场景时报错: | 140 | 第一段接口完成入参校验,出现以下场景时报错: |
| 141 | 141 | ||
| 142 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 142 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 143 | <col style="width: 272px"> | 143 | <col style="width: 272px"> |
| 144 | <col style="width: 114px"> | 144 | <col style="width: 114px"> |
| 145 | <col style="width: 764px"> | 145 | <col style="width: 764px"> |
| @@ -180,7 +180,7 @@ aclnnStatus aclnnInplaceGtTensor( | |||
| 180 | 180 | ||
| 181 | - **参数说明:** | 181 | - **参数说明:** |
| 182 | 182 | ||
| 183 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 183 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 184 | <col style="width: 153px"> | 184 | <col style="width: 153px"> |
| 185 | <col style="width: 124px"> | 185 | <col style="width: 124px"> |
| 186 | <col style="width: 873px"> | 186 | <col style="width: 873px"> |
| @@ -223,7 +223,7 @@ aclnnStatus aclnnInplaceGtTensor( | |||
| 223 | 223 | ||
| 224 | - **参数说明:** | 224 | - **参数说明:** |
| 225 | 225 | ||
| 226 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 226 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 227 | <col style="width: 154px"> | 227 | <col style="width: 154px"> |
| 228 | <col style="width: 125px"> | 228 | <col style="width: 125px"> |
| 229 | <col style="width: 291px"> | 229 | <col style="width: 291px"> |
| @@ -296,7 +296,7 @@ aclnnStatus aclnnInplaceGtTensor( | |||
| 296 | 296 | ||
| 297 | 第一段接口完成入参校验,出现以下场景时报错: | 297 | 第一段接口完成入参校验,出现以下场景时报错: |
| 298 | 298 | ||
| 299 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 299 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 300 | <col style="width: 272px"> | 300 | <col style="width: 272px"> |
| 301 | <col style="width: 114px"> | 301 | <col style="width: 114px"> |
| 302 | <col style="width: 764px"> | 302 | <col style="width: 764px"> |
| @@ -337,7 +337,7 @@ aclnnStatus aclnnInplaceGtTensor( | |||
| 337 | 337 | ||
| 338 | - **参数说明:** | 338 | - **参数说明:** |
| 339 | 339 | ||
| 340 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 340 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 341 | <col style="width: 153px"> | 341 | <col style="width: 153px"> |
| 342 | <col style="width: 124px"> | 342 | <col style="width: 124px"> |
| 343 | <col style="width: 873px"> | 343 | <col style="width: 873px"> |
| @@ -62,7 +62,7 @@ aclnnStatus aclnnInplaceGeScalar( | |||
| 62 | 62 | ||
| 63 | - **参数说明:** | 63 | - **参数说明:** |
| 64 | 64 | ||
| 65 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 65 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 66 | <col style="width: 146px"> | 66 | <col style="width: 146px"> |
| 67 | <col style="width: 110px"> | 67 | <col style="width: 110px"> |
| 68 | <col style="width: 301px"> | 68 | <col style="width: 301px"> |
| @@ -145,7 +145,7 @@ aclnnStatus aclnnInplaceGeScalar( | |||
| 145 | 145 | ||
| 146 | 第一段接口完成入参校验,出现以下场景时报错: | 146 | 第一段接口完成入参校验,出现以下场景时报错: |
| 147 | 147 | ||
| 148 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 148 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 149 | <col style="width: 319px"> | 149 | <col style="width: 319px"> |
| 150 | <col style="width: 144px"> | 150 | <col style="width: 144px"> |
| 151 | <col style="width: 671px"> | 151 | <col style="width: 671px"> |
| @@ -181,7 +181,7 @@ aclnnStatus aclnnInplaceGeScalar( | |||
| 181 | ## aclnnGeScalar | 181 | ## aclnnGeScalar |
| 182 | 182 | ||
| 183 | - **参数说明:** | 183 | - **参数说明:** |
| 184 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 184 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 185 | <col style="width: 173px"> | 185 | <col style="width: 173px"> |
| 186 | <col style="width: 112px"> | 186 | <col style="width: 112px"> |
| 187 | <col style="width: 668px"> | 187 | <col style="width: 668px"> |
| @@ -224,7 +224,7 @@ aclnnStatus aclnnInplaceGeScalar( | |||
| 224 | 224 | ||
| 225 | - **参数说明:** | 225 | - **参数说明:** |
| 226 | 226 | ||
| 227 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 227 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 228 | <col style="width: 146px"> | 228 | <col style="width: 146px"> |
| 229 | <col style="width: 110px"> | 229 | <col style="width: 110px"> |
| 230 | <col style="width: 301px"> | 230 | <col style="width: 301px"> |
| @@ -297,7 +297,7 @@ aclnnStatus aclnnInplaceGeScalar( | |||
| 297 | 297 | ||
| 298 | 第一段接口完成入参校验,出现以下场景时报错: | 298 | 第一段接口完成入参校验,出现以下场景时报错: |
| 299 | 299 | ||
| 300 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 300 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 301 | <col style="width: 319px"> | 301 | <col style="width: 319px"> |
| 302 | <col style="width: 144px"> | 302 | <col style="width: 144px"> |
| 303 | <col style="width: 671px"> | 303 | <col style="width: 671px"> |
| @@ -330,7 +330,7 @@ aclnnStatus aclnnInplaceGeScalar( | |||
| 330 | ## aclnnInplaceGeScalar | 330 | ## aclnnInplaceGeScalar |
| 331 | 331 | ||
| 332 | - **参数说明:** | 332 | - **参数说明:** |
| 333 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 333 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 334 | <col style="width: 173px"> | 334 | <col style="width: 173px"> |
| 335 | <col style="width: 112px"> | 335 | <col style="width: 112px"> |
| 336 | <col style="width: 668px"> | 336 | <col style="width: 668px"> |
| @@ -469,7 +469,7 @@ int main() { | |||
| 469 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_BOOL, &out); | 469 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_BOOL, &out); |
| 470 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 470 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 471 | 471 | ||
| 472 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 472 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 473 | uint64_t workspaceSize = 0; | 473 | uint64_t workspaceSize = 0; |
| 474 | aclOpExecutor* executor; | 474 | aclOpExecutor* executor; |
| 475 | // 调用aclnnGeScalar第一段接口 | 475 | // 调用aclnnGeScalar第一段接口 |
| @@ -601,7 +601,7 @@ int main() { | |||
| 601 | other = aclCreateScalar(&otherValue, aclDataType::ACL_FLOAT); | 601 | other = aclCreateScalar(&otherValue, aclDataType::ACL_FLOAT); |
| 602 | CHECK_RET(other != nullptr, return ret); | 602 | CHECK_RET(other != nullptr, return ret); |
| 603 | 603 | ||
| 604 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 604 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 605 | uint64_t workspaceSize = 0; | 605 | uint64_t workspaceSize = 0; |
| 606 | aclOpExecutor* executor; | 606 | aclOpExecutor* executor; |
| 607 | // 调用aclnnInplaceGeScalar第一段接口 | 607 | // 调用aclnnInplaceGeScalar第一段接口 |
| @@ -63,7 +63,7 @@ aclnnStatus aclnnInplaceGeTensor( | |||
| 63 | 63 | ||
| 64 | - **参数说明:** | 64 | - **参数说明:** |
| 65 | 65 | ||
| 66 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 66 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 67 | <col style="width: 154px"> | 67 | <col style="width: 154px"> |
| 68 | <col style="width: 125px"> | 68 | <col style="width: 125px"> |
| 69 | <col style="width: 291px"> | 69 | <col style="width: 291px"> |
| @@ -146,7 +146,7 @@ aclnnStatus aclnnInplaceGeTensor( | |||
| 146 | 146 | ||
| 147 | 第一段接口完成入参校验,出现以下场景时报错: | 147 | 第一段接口完成入参校验,出现以下场景时报错: |
| 148 | 148 | ||
| 149 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 149 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 150 | <col style="width: 272px"> | 150 | <col style="width: 272px"> |
| 151 | <col style="width: 114px"> | 151 | <col style="width: 114px"> |
| 152 | <col style="width: 764px"> | 152 | <col style="width: 764px"> |
| @@ -187,7 +187,7 @@ aclnnStatus aclnnInplaceGeTensor( | |||
| 187 | 187 | ||
| 188 | - **参数说明:** | 188 | - **参数说明:** |
| 189 | 189 | ||
| 190 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 190 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 191 | <col style="width: 153px"> | 191 | <col style="width: 153px"> |
| 192 | <col style="width: 124px"> | 192 | <col style="width: 124px"> |
| 193 | <col style="width: 873px"> | 193 | <col style="width: 873px"> |
| @@ -230,7 +230,7 @@ aclnnStatus aclnnInplaceGeTensor( | |||
| 230 | 230 | ||
| 231 | - **参数说明:** | 231 | - **参数说明:** |
| 232 | 232 | ||
| 233 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 233 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 234 | <col style="width: 154px"> | 234 | <col style="width: 154px"> |
| 235 | <col style="width: 125px"> | 235 | <col style="width: 125px"> |
| 236 | <col style="width: 291px"> | 236 | <col style="width: 291px"> |
| @@ -303,7 +303,7 @@ aclnnStatus aclnnInplaceGeTensor( | |||
| 303 | 303 | ||
| 304 | 第一段接口完成入参校验,出现以下场景时报错: | 304 | 第一段接口完成入参校验,出现以下场景时报错: |
| 305 | 305 | ||
| 306 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 306 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 307 | <col style="width: 272px"> | 307 | <col style="width: 272px"> |
| 308 | <col style="width: 114px"> | 308 | <col style="width: 114px"> |
| 309 | <col style="width: 764px"> | 309 | <col style="width: 764px"> |
| @@ -344,7 +344,7 @@ aclnnStatus aclnnInplaceGeTensor( | |||
| 344 | 344 | ||
| 345 | - **参数说明:** | 345 | - **参数说明:** |
| 346 | 346 | ||
| 347 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 347 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 348 | <col style="width: 153px"> | 348 | <col style="width: 153px"> |
| 349 | <col style="width: 124px"> | 349 | <col style="width: 124px"> |
| 350 | <col style="width: 873px"> | 350 | <col style="width: 873px"> |
| @@ -484,7 +484,7 @@ int main() { | |||
| 484 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_BOOL, &out); | 484 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_BOOL, &out); |
| 485 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 485 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 486 | 486 | ||
| 487 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 487 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 488 | uint64_t workspaceSize = 0; | 488 | uint64_t workspaceSize = 0; |
| 489 | aclOpExecutor* executor; | 489 | aclOpExecutor* executor; |
| 490 | // 调用aclnnGeTensor第一段接口 | 490 | // 调用aclnnGeTensor第一段接口 |
| @@ -23,7 +23,7 @@ $$ | |||
| 23 | 23 | ||
| 24 | ## 参数说明 | 24 | ## 参数说明 |
| 25 | 25 | ||
| 26 | -<table style="undefined;table-layout: fixed; width: 980px"> | 26 | +<table style="table-layout: fixed; width: 980px"> |
| 27 | <colgroup> | 27 | <colgroup> |
| 28 | <col style="width: 100px"> | 28 | <col style="width: 100px"> |
| 29 | <col style="width: 150px"> | 29 | <col style="width: 150px"> |
| @@ -18,7 +18,7 @@ $$ | |||
| 18 | 18 | ||
| 19 | ## 参数说明 | 19 | ## 参数说明 |
| 20 | 20 | ||
| 21 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 21 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 22 | <col style="width: 100px"> | 22 | <col style="width: 100px"> |
| 23 | <col style="width: 150px"> | 23 | <col style="width: 150px"> |
| 24 | <col style="width: 280px"> | 24 | <col style="width: 280px"> |
| @@ -48,7 +48,7 @@ $$ | |||
| 48 | 48 | ||
| 49 | 第一段接口完成入参校验,出现以下场景时报错: | 49 | 第一段接口完成入参校验,出现以下场景时报错: |
| 50 | 50 | ||
| 51 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 51 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 52 | <col style="width: 286px"> | 52 | <col style="width: 286px"> |
| 53 | <col style="width: 123px"> | 53 | <col style="width: 123px"> |
| 54 | <col style="width: 741px"> | 54 | <col style="width: 741px"> |
| @@ -86,7 +86,7 @@ $$ | |||
| 86 | 86 | ||
| 87 | - **参数说明**: | 87 | - **参数说明**: |
| 88 | 88 | ||
| 89 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 89 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 90 | <col style="width: 167px"> | 90 | <col style="width: 167px"> |
| 91 | <col style="width: 134px"> | 91 | <col style="width: 134px"> |
| 92 | <col style="width: 848px"> | 92 | <col style="width: 848px"> |
| @@ -143,7 +143,7 @@ $$ | |||
| 143 | 143 | ||
| 144 | 第一段接口完成入参校验,出现以下场景时报错: | 144 | 第一段接口完成入参校验,出现以下场景时报错: |
| 145 | 145 | ||
| 146 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 146 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 147 | <col style="width: 286px"> | 147 | <col style="width: 286px"> |
| 148 | <col style="width: 123px"> | 148 | <col style="width: 123px"> |
| 149 | <col style="width: 741px"> | 149 | <col style="width: 741px"> |
| @@ -181,7 +181,7 @@ $$ | |||
| 181 | 181 | ||
| 182 | - **参数说明**: | 182 | - **参数说明**: |
| 183 | 183 | ||
| 184 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 184 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 185 | <col style="width: 167px"> | 185 | <col style="width: 167px"> |
| 186 | <col style="width: 134px"> | 186 | <col style="width: 134px"> |
| 187 | <col style="width: 848px"> | 187 | <col style="width: 848px"> |
| @@ -47,7 +47,7 @@ $$ | |||
| 47 | 47 | ||
| 48 | 第一段接口完成入参校验,出现以下场景时报错: | 48 | 第一段接口完成入参校验,出现以下场景时报错: |
| 49 | 49 | ||
| 50 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 50 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 51 | <col style="width: 286px"> | 51 | <col style="width: 286px"> |
| 52 | <col style="width: 123px"> | 52 | <col style="width: 123px"> |
| 53 | <col style="width: 741px"> | 53 | <col style="width: 741px"> |
| @@ -85,7 +85,7 @@ $$ | |||
| 85 | 85 | ||
| 86 | - **参数说明**: | 86 | - **参数说明**: |
| 87 | 87 | ||
| 88 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 88 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 89 | <col style="width: 167px"> | 89 | <col style="width: 167px"> |
| 90 | <col style="width: 134px"> | 90 | <col style="width: 134px"> |
| 91 | <col style="width: 848px"> | 91 | <col style="width: 848px"> |
| @@ -141,7 +141,7 @@ $$ | |||
| 141 | 141 | ||
| 142 | 第一段接口完成入参校验,出现以下场景时报错: | 142 | 第一段接口完成入参校验,出现以下场景时报错: |
| 143 | 143 | ||
| 144 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 144 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 145 | <col style="width: 286px"> | 145 | <col style="width: 286px"> |
| 146 | <col style="width: 123px"> | 146 | <col style="width: 123px"> |
| 147 | <col style="width: 741px"> | 147 | <col style="width: 741px"> |
| @@ -179,7 +179,7 @@ $$ | |||
| 179 | 179 | ||
| 180 | - **参数说明**: | 180 | - **参数说明**: |
| 181 | 181 | ||
| 182 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 182 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 183 | <col style="width: 167px"> | 183 | <col style="width: 167px"> |
| 184 | <col style="width: 134px"> | 184 | <col style="width: 134px"> |
| 185 | <col style="width: 848px"> | 185 | <col style="width: 848px"> |
| @@ -18,7 +18,7 @@ | |||
| 18 | 18 | ||
| 19 | ## 参数说明 | 19 | ## 参数说明 |
| 20 | 20 | ||
| 21 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 21 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 22 | <col style="width: 100px"> | 22 | <col style="width: 100px"> |
| 23 | <col style="width: 150px"> | 23 | <col style="width: 150px"> |
| 24 | <col style="width: 190px"> | 24 | <col style="width: 190px"> |
| @@ -48,7 +48,7 @@ | |||
| 48 | 48 | ||
| 49 | 第一段接口完成入参校验,出现以下场景时报错: | 49 | 第一段接口完成入参校验,出现以下场景时报错: |
| 50 | 50 | ||
| 51 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 51 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 52 | <col style="width: 287px"> | 52 | <col style="width: 287px"> |
| 53 | <col style="width: 124px"> | 53 | <col style="width: 124px"> |
| 54 | <col style="width: 740px"> | 54 | <col style="width: 740px"> |
| @@ -86,7 +86,7 @@ | |||
| 86 | 86 | ||
| 87 | - **参数说明:** | 87 | - **参数说明:** |
| 88 | 88 | ||
| 89 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 89 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 90 | <col style="width: 167px"> | 90 | <col style="width: 167px"> |
| 91 | <col style="width: 134px"> | 91 | <col style="width: 134px"> |
| 92 | <col style="width: 848px"> | 92 | <col style="width: 848px"> |
| @@ -142,7 +142,7 @@ | |||
| 142 | 142 | ||
| 143 | 第一段接口完成入参校验,出现以下场景时报错: | 143 | 第一段接口完成入参校验,出现以下场景时报错: |
| 144 | 144 | ||
| 145 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 145 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 146 | <col style="width: 286px"> | 146 | <col style="width: 286px"> |
| 147 | <col style="width: 124px"> | 147 | <col style="width: 124px"> |
| 148 | <col style="width: 740px"> | 148 | <col style="width: 740px"> |
| @@ -177,7 +177,7 @@ | |||
| 177 | 177 | ||
| 178 | - **参数说明:** | 178 | - **参数说明:** |
| 179 | 179 | ||
| 180 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 180 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 181 | <col style="width: 167px"> | 181 | <col style="width: 167px"> |
| 182 | <col style="width: 134px"> | 182 | <col style="width: 134px"> |
| 183 | <col style="width: 848px"> | 183 | <col style="width: 848px"> |
| @@ -310,7 +310,7 @@ int ExecuteLtScalarOperator(aclrtStream stream) { | |||
| 310 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_DOUBLE, &out); | 310 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_DOUBLE, &out); |
| 311 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 311 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 312 | 312 | ||
| 313 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 313 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 314 | uint64_t workspaceSize = 0; | 314 | uint64_t workspaceSize = 0; |
| 315 | aclOpExecutor* executor; | 315 | aclOpExecutor* executor; |
| 316 | // 调用aclnnLtScalar第一段接口 | 316 | // 调用aclnnLtScalar第一段接口 |
| @@ -48,7 +48,7 @@ | |||
| 48 | 48 | ||
| 49 | 第一段接口完成入参校验,出现以下场景时报错: | 49 | 第一段接口完成入参校验,出现以下场景时报错: |
| 50 | 50 | ||
| 51 | - <table style="undefined;table-layout: fixed; width: 1152px"><colgroup> | 51 | + <table style="table-layout: fixed; width: 1152px"><colgroup> |
| 52 | <col style="width: 287px"> | 52 | <col style="width: 287px"> |
| 53 | <col style="width: 124px"> | 53 | <col style="width: 124px"> |
| 54 | <col style="width: 741px"> | 54 | <col style="width: 741px"> |
| @@ -89,7 +89,7 @@ | |||
| 89 | 89 | ||
| 90 | - **参数说明:** | 90 | - **参数说明:** |
| 91 | 91 | ||
| 92 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 92 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 93 | <col style="width: 167px"> | 93 | <col style="width: 167px"> |
| 94 | <col style="width: 134px"> | 94 | <col style="width: 134px"> |
| 95 | <col style="width: 848px"> | 95 | <col style="width: 848px"> |
| @@ -145,7 +145,7 @@ | |||
| 145 | 145 | ||
| 146 | 第一段接口完成入参校验,出现以下场景时报错: | 146 | 第一段接口完成入参校验,出现以下场景时报错: |
| 147 | 147 | ||
| 148 | - <table style="undefined;table-layout: fixed; width: 1152px"><colgroup> | 148 | + <table style="table-layout: fixed; width: 1152px"><colgroup> |
| 149 | <col style="width: 287px"> | 149 | <col style="width: 287px"> |
| 150 | <col style="width: 124px"> | 150 | <col style="width: 124px"> |
| 151 | <col style="width: 741px"> | 151 | <col style="width: 741px"> |
| @@ -186,7 +186,7 @@ | |||
| 186 | 186 | ||
| 187 | - **参数说明:** | 187 | - **参数说明:** |
| 188 | 188 | ||
| 189 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 189 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 190 | <col style="width: 167px"> | 190 | <col style="width: 167px"> |
| 191 | <col style="width: 134px"> | 191 | <col style="width: 134px"> |
| 192 | <col style="width: 848px"> | 192 | <col style="width: 848px"> |
| @@ -42,7 +42,7 @@ $$ | |||
| 42 | 42 | ||
| 43 | 第一段接口完成入参校验,出现以下场景时报错: | 43 | 第一段接口完成入参校验,出现以下场景时报错: |
| 44 | 44 | ||
| 45 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 45 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 46 | <col style="width: 286px"> | 46 | <col style="width: 286px"> |
| 47 | <col style="width: 123px"> | 47 | <col style="width: 123px"> |
| 48 | <col style="width: 740px"> | 48 | <col style="width: 740px"> |
| @@ -80,7 +80,7 @@ $$ | |||
| 80 | 80 | ||
| 81 | - **参数说明:** | 81 | - **参数说明:** |
| 82 | 82 | ||
| 83 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 83 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 84 | <col style="width: 167px"> | 84 | <col style="width: 167px"> |
| 85 | <col style="width: 134px"> | 85 | <col style="width: 134px"> |
| 86 | <col style="width: 848px"> | 86 | <col style="width: 848px"> |
| @@ -24,7 +24,7 @@ $$ | |||
| 24 | 24 | ||
| 25 | ## 参数说明 | 25 | ## 参数说明 |
| 26 | 26 | ||
| 27 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 27 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 28 | <col style="width: 100px"> | 28 | <col style="width: 100px"> |
| 29 | <col style="width: 150px"> | 29 | <col style="width: 150px"> |
| 30 | <col style="width: 280px"> | 30 | <col style="width: 280px"> |
| @@ -46,14 +46,14 @@ $$ | |||
| 46 | <td>待进行log计算的入参,公式中的self。</td> | 46 | <td>待进行log计算的入参,公式中的self。</td> |
| 47 | <td>FLOAT、FLOAT16、BFLOAT16</td> | 47 | <td>FLOAT、FLOAT16、BFLOAT16</td> |
| 48 | <td>ND</td> | 48 | <td>ND</td> |
| 49 | - </tr> | 49 | + </tr> |
| 50 | <tr> | 50 | <tr> |
| 51 | <td>y</td> | 51 | <td>y</td> |
| 52 | <td>输出</td> | 52 | <td>输出</td> |
| 53 | <td>进行完log计算的出参,公式中的output。</td> | 53 | <td>进行完log计算的出参,公式中的output。</td> |
| 54 | <td>FLOAT、FLOAT16、BFLOAT16</td> | 54 | <td>FLOAT、FLOAT16、BFLOAT16</td> |
| 55 | <td>ND</td> | 55 | <td>ND</td> |
| 56 | - </tr> | 56 | + </tr> |
| 57 | <tr> | 57 | <tr> |
| 58 | <td>base</td> | 58 | <td>base</td> |
| 59 | <td>属性</td> | 59 | <td>属性</td> |
| @@ -201,7 +201,7 @@ int main() { | |||
| 201 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 201 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 202 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 202 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 203 | 203 | ||
| 204 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 204 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 205 | uint64_t workspaceSize = 0; | 205 | uint64_t workspaceSize = 0; |
| 206 | aclOpExecutor* executor; | 206 | aclOpExecutor* executor; |
| 207 | // 调用aclnnLog第一段接口 | 207 | // 调用aclnnLog第一段接口 |
| @@ -330,7 +330,7 @@ int main() { | |||
| 330 | ret = CreateAclTensor(selfHostData, selfShape, &selfDeviceAddr, aclDataType::ACL_FLOAT, &self); | 330 | ret = CreateAclTensor(selfHostData, selfShape, &selfDeviceAddr, aclDataType::ACL_FLOAT, &self); |
| 331 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 331 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 332 | 332 | ||
| 333 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 333 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 334 | uint64_t workspaceSize = 0; | 334 | uint64_t workspaceSize = 0; |
| 335 | aclOpExecutor* executor; | 335 | aclOpExecutor* executor; |
| 336 | // 调用aclnnInplaceLog第一段接口 | 336 | // 调用aclnnInplaceLog第一段接口 |
| @@ -21,7 +21,7 @@ $$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 24 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 25 | <col style="width: 146px"> | 25 | <col style="width: 146px"> |
| 26 | <col style="width: 110px"> | 26 | <col style="width: 110px"> |
| 27 | <col style="width: 301px"> | 27 | <col style="width: 301px"> |
| @@ -62,7 +62,7 @@ $$ | |||
| 62 | <td>ND</td> | 62 | <td>ND</td> |
| 63 | <td>0-8</td> | 63 | <td>0-8</td> |
| 64 | <td>√</td> | 64 | <td>√</td> |
| 65 | - </tr> | 65 | + </tr> |
| 66 | <tr> | 66 | <tr> |
| 67 | <td>out</td> | 67 | <td>out</td> |
| 68 | <td>输出</td> | 68 | <td>输出</td> |
| @@ -95,7 +95,7 @@ $$ | |||
| 95 | </tr> | 95 | </tr> |
| 96 | </tbody> | 96 | </tbody> |
| 97 | </table> | 97 | </table> |
| 98 | - | 98 | + |
| 99 | ## 约束说明 | 99 | ## 约束说明 |
| 100 | 100 | ||
| 101 | 无 | 101 | 无 |
| @@ -44,7 +44,7 @@ aclnnStatus aclnnLogicalAnd( | |||
| 44 | 44 | ||
| 45 | - **参数说明:** | 45 | - **参数说明:** |
| 46 | 46 | ||
| 47 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 47 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 48 | <col style="width: 146px"> | 48 | <col style="width: 146px"> |
| 49 | <col style="width: 110px"> | 49 | <col style="width: 110px"> |
| 50 | <col style="width: 301px"> | 50 | <col style="width: 301px"> |
| @@ -124,7 +124,7 @@ aclnnStatus aclnnLogicalAnd( | |||
| 124 | 124 | ||
| 125 | 第一段接口会完成入参校验,出现以下场景时报错: | 125 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 126 | 126 | ||
| 127 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 127 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 128 | <col style="width: 319px"> | 128 | <col style="width: 319px"> |
| 129 | <col style="width: 144px"> | 129 | <col style="width: 144px"> |
| 130 | <col style="width: 671px"> | 130 | <col style="width: 671px"> |
| @@ -159,7 +159,7 @@ aclnnStatus aclnnLogicalAnd( | |||
| 159 | 159 | ||
| 160 | - **参数说明:** | 160 | - **参数说明:** |
| 161 | 161 | ||
| 162 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 162 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 163 | <col style="width: 173px"> | 163 | <col style="width: 173px"> |
| 164 | <col style="width: 112px"> | 164 | <col style="width: 112px"> |
| 165 | <col style="width: 668px"> | 165 | <col style="width: 668px"> |
| @@ -33,7 +33,7 @@ | |||
| 33 | 33 | ||
| 34 | ## 参数说明 | 34 | ## 参数说明 |
| 35 | 35 | ||
| 36 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 36 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 37 | <col style="width: 100px"> | 37 | <col style="width: 100px"> |
| 38 | <col style="width: 150px"> | 38 | <col style="width: 150px"> |
| 39 | <col style="width: 280px"> | 39 | <col style="width: 280px"> |
| @@ -12,7 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | ## 算子原型 | 13 | ## 算子原型 |
| 14 | 14 | ||
| 15 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 15 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 16 | <col style="width: 100px"> | 16 | <col style="width: 100px"> |
| 17 | <col style="width: 150px"> | 17 | <col style="width: 150px"> |
| 18 | <col style="width: 280px"> | 18 | <col style="width: 280px"> |
| @@ -55,7 +55,7 @@ | |||
| 55 | <td>待进行NanToNum计算的属性neginf</td> | 55 | <td>待进行NanToNum计算的属性neginf</td> |
| 56 | <td>float</td> | 56 | <td>float</td> |
| 57 | <td>1</td> | 57 | <td>1</td> |
| 58 | - </tr> | 58 | + </tr> |
| 59 | <tr> | 59 | <tr> |
| 60 | <td>y</td> | 60 | <td>y</td> |
| 61 | <td>输出</td> | 61 | <td>输出</td> |
| @@ -194,7 +194,7 @@ int main() { | |||
| 194 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 194 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 195 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 195 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 196 | 196 | ||
| 197 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 197 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 198 | uint64_t workspaceSize = 0; | 198 | uint64_t workspaceSize = 0; |
| 199 | aclOpExecutor* executor; | 199 | aclOpExecutor* executor; |
| 200 | // 调用aclnnNanToNum第一段接口 | 200 | // 调用aclnnNanToNum第一段接口 |
| @@ -324,7 +324,7 @@ int main() { | |||
| 324 | ret = CreateAclTensor(selfHostData, selfShape, &selfDeviceAddr, aclDataType::ACL_FLOAT, &self); | 324 | ret = CreateAclTensor(selfHostData, selfShape, &selfDeviceAddr, aclDataType::ACL_FLOAT, &self); |
| 325 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 325 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 326 | 326 | ||
| 327 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 327 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 328 | uint64_t workspaceSize = 0; | 328 | uint64_t workspaceSize = 0; |
| 329 | aclOpExecutor* executor; | 329 | aclOpExecutor* executor; |
| 330 | // 调用aclnnInplaceNanToNum第一段接口 | 330 | // 调用aclnnInplaceNanToNum第一段接口 |
| @@ -188,7 +188,7 @@ int main() { | |||
| 188 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 188 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 189 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 189 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 190 | 190 | ||
| 191 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 191 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 192 | uint64_t workspaceSize = 0; | 192 | uint64_t workspaceSize = 0; |
| 193 | aclOpExecutor* executor; | 193 | aclOpExecutor* executor; |
| 194 | // 调用aclnnNeg第一段接口 | 194 | // 调用aclnnNeg第一段接口 |
| @@ -253,7 +253,7 @@ int main() | |||
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | // aclnnInplaceNeScalar调用示例 | 255 | // aclnnInplaceNeScalar调用示例 |
| 256 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 256 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 257 | LOG_PRINT("\ntest aclnnInplaceNeScalar\n"); | 257 | LOG_PRINT("\ntest aclnnInplaceNeScalar\n"); |
| 258 | // 调用aclnnInplaceNeScalar第一段接口 | 258 | // 调用aclnnInplaceNeScalar第一段接口 |
| 259 | ret = aclnnInplaceNeScalarGetWorkspaceSize(self, other, &workspaceSize, &executor); | 259 | ret = aclnnInplaceNeScalarGetWorkspaceSize(self, other, &workspaceSize, &executor); |
| @@ -253,7 +253,7 @@ int main() | |||
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | // aclnnInplaceNeScalar调用示例 | 255 | // aclnnInplaceNeScalar调用示例 |
| 256 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 256 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 257 | LOG_PRINT("\ntest aclnnInplaceNeScalar\n"); | 257 | LOG_PRINT("\ntest aclnnInplaceNeScalar\n"); |
| 258 | // 调用aclnnInplaceNeScalar第一段接口 | 258 | // 调用aclnnInplaceNeScalar第一段接口 |
| 259 | ret = aclnnInplaceNeScalarGetWorkspaceSize(self, other, &workspaceSize, &executor); | 259 | ret = aclnnInplaceNeScalarGetWorkspaceSize(self, other, &workspaceSize, &executor); |
| @@ -33,7 +33,7 @@ aclnnStatus aclnnInplaceOne( | |||
| 33 | 33 | ||
| 34 | - **参数说明:** | 34 | - **参数说明:** |
| 35 | 35 | ||
| 36 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 36 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 37 | <col style="width: 146px"> | 37 | <col style="width: 146px"> |
| 38 | <col style="width: 110px"> | 38 | <col style="width: 110px"> |
| 39 | <col style="width: 301px"> | 39 | <col style="width: 301px"> |
| @@ -93,7 +93,7 @@ aclnnStatus aclnnInplaceOne( | |||
| 93 | 93 | ||
| 94 | 第一段接口会完成入参校验,出现以下场景时报错: | 94 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 95 | 95 | ||
| 96 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 96 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 97 | <col style="width: 319px"> | 97 | <col style="width: 319px"> |
| 98 | <col style="width: 144px"> | 98 | <col style="width: 144px"> |
| 99 | <col style="width: 671px"> | 99 | <col style="width: 671px"> |
| @@ -128,7 +128,7 @@ aclnnStatus aclnnInplaceOne( | |||
| 128 | 128 | ||
| 129 | - **参数说明:** | 129 | - **参数说明:** |
| 130 | 130 | ||
| 131 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 131 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 132 | <col style="width: 173px"> | 132 | <col style="width: 173px"> |
| 133 | <col style="width: 112px"> | 133 | <col style="width: 112px"> |
| 134 | <col style="width: 668px"> | 134 | <col style="width: 668px"> |
| @@ -289,7 +289,7 @@ int main() | |||
| 289 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 289 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 290 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 290 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 291 | 291 | ||
| 292 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 292 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 293 | uint64_t workspaceSize = 0; | 293 | uint64_t workspaceSize = 0; |
| 294 | aclOpExecutor* executor; | 294 | aclOpExecutor* executor; |
| 295 | 295 | ||
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | ## 参数说明 | 24 | ## 参数说明 |
| 25 | 25 | ||
| 26 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 26 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 27 | <col style="width: 100px"> | 27 | <col style="width: 100px"> |
| 28 | <col style="width: 150px"> | 28 | <col style="width: 150px"> |
| 29 | <col style="width: 280px"> | 29 | <col style="width: 280px"> |
| @@ -46,7 +46,7 @@ aclnnStatus aclnnPolar( | |||
| 46 | 46 | ||
| 47 | - **参数说明:** | 47 | - **参数说明:** |
| 48 | 48 | ||
| 49 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 49 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 50 | <col style="width: 150px"> | 50 | <col style="width: 150px"> |
| 51 | <col style="width: 121px"> | 51 | <col style="width: 121px"> |
| 52 | <col style="width: 206px"> | 52 | <col style="width: 206px"> |
| @@ -137,7 +137,7 @@ aclnnStatus aclnnPolar( | |||
| 137 | 137 | ||
| 138 | 第一段接口完成入参校验,出现如下场景时报错: | 138 | 第一段接口完成入参校验,出现如下场景时报错: |
| 139 | 139 | ||
| 140 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 140 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 141 | <col style="width: 267px"> | 141 | <col style="width: 267px"> |
| 142 | <col style="width: 124px"> | 142 | <col style="width: 124px"> |
| 143 | <col style="width: 775px"> | 143 | <col style="width: 775px"> |
| @@ -178,7 +178,7 @@ aclnnStatus aclnnPolar( | |||
| 178 | 178 | ||
| 179 | - **参数说明:** | 179 | - **参数说明:** |
| 180 | 180 | ||
| 181 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 181 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 182 | <col style="width: 173px"> | 182 | <col style="width: 173px"> |
| 183 | <col style="width: 133px"> | 183 | <col style="width: 133px"> |
| 184 | <col style="width: 860px"> | 184 | <col style="width: 860px"> |
| @@ -18,7 +18,7 @@ $$ | |||
| 18 | 18 | ||
| 19 | ## 参数说明 | 19 | ## 参数说明 |
| 20 | 20 | ||
| 21 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 21 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 22 | <col style="width: 100px"> | 22 | <col style="width: 100px"> |
| 23 | <col style="width: 150px"> | 23 | <col style="width: 150px"> |
| 24 | <col style="width: 280px"> | 24 | <col style="width: 280px"> |
| @@ -40,14 +40,14 @@ $$ | |||
| 40 | <td>底数张量,可为标量或多维张量,支持广播到输出张量。</td> | 40 | <td>底数张量,可为标量或多维张量,支持广播到输出张量。</td> |
| 41 | <td>FLOAT16、FLOAT32、BFLOAT16、INT8、UINT8、INT16、INT32</td> | 41 | <td>FLOAT16、FLOAT32、BFLOAT16、INT8、UINT8、INT16、INT32</td> |
| 42 | <td>ND</td> | 42 | <td>ND</td> |
| 43 | - </tr> | 43 | + </tr> |
| 44 | <tr> | 44 | <tr> |
| 45 | <td>x2</td> | 45 | <td>x2</td> |
| 46 | <td>输入</td> | 46 | <td>输入</td> |
| 47 | <td>指数张量,可为标量或多维张量,支持广播到输出张量。</td> | 47 | <td>指数张量,可为标量或多维张量,支持广播到输出张量。</td> |
| 48 | <td>FLOAT16、FLOAT32、BFLOAT16、INT8、UINT8、INT16、INT32</td> | 48 | <td>FLOAT16、FLOAT32、BFLOAT16、INT8、UINT8、INT16、INT32</td> |
| 49 | <td>ND</td> | 49 | <td>ND</td> |
| 50 | - </tr> | 50 | + </tr> |
| 51 | <tr> | 51 | <tr> |
| 52 | <td>out</td> | 52 | <td>out</td> |
| 53 | <td>输出</td> | 53 | <td>输出</td> |
| @@ -40,7 +40,7 @@ aclnnStatus aclnnPow2( | |||
| 40 | 40 | ||
| 41 | - **参数说明:** | 41 | - **参数说明:** |
| 42 | 42 | ||
| 43 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 43 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 44 | <col style="width: 146px"> | 44 | <col style="width: 146px"> |
| 45 | <col style="width: 110px"> | 45 | <col style="width: 110px"> |
| 46 | <col style="width: 301px"> | 46 | <col style="width: 301px"> |
| @@ -120,7 +120,7 @@ aclnnStatus aclnnPow2( | |||
| 120 | 120 | ||
| 121 | 第一段接口会完成入参校验,出现以下场景时报错: | 121 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 122 | 122 | ||
| 123 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 123 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 124 | <col style="width: 319px"> | 124 | <col style="width: 319px"> |
| 125 | <col style="width: 144px"> | 125 | <col style="width: 144px"> |
| 126 | <col style="width: 671px"> | 126 | <col style="width: 671px"> |
| @@ -155,7 +155,7 @@ aclnnStatus aclnnPow2( | |||
| 155 | 155 | ||
| 156 | - **参数说明:** | 156 | - **参数说明:** |
| 157 | 157 | ||
| 158 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 158 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 159 | <col style="width: 173px"> | 159 | <col style="width: 173px"> |
| 160 | <col style="width: 112px"> | 160 | <col style="width: 112px"> |
| 161 | <col style="width: 668px"> | 161 | <col style="width: 668px"> |
| @@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | ## 参数说明 | 28 | ## 参数说明 |
| 29 | 29 | ||
| 30 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 30 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 31 | <col style="width: 100px"> | 31 | <col style="width: 100px"> |
| 32 | <col style="width: 150px"> | 32 | <col style="width: 150px"> |
| 33 | <col style="width: 280px"> | 33 | <col style="width: 280px"> |
| @@ -24,7 +24,7 @@ $$ | |||
| 24 | 24 | ||
| 25 | ## 参数说明 | 25 | ## 参数说明 |
| 26 | 26 | ||
| 27 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 27 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 28 | <col style="width: 100px"> | 28 | <col style="width: 100px"> |
| 29 | <col style="width: 150px"> | 29 | <col style="width: 150px"> |
| 30 | <col style="width: 280px"> | 30 | <col style="width: 280px"> |
| @@ -44,7 +44,7 @@ aclnnStatus aclnnReal( | |||
| 44 | 44 | ||
| 45 | - **参数说明:** | 45 | - **参数说明:** |
| 46 | 46 | ||
| 47 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 47 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 48 | <col style="width: 217px"> | 48 | <col style="width: 217px"> |
| 49 | <col style="width: 125px"> | 49 | <col style="width: 125px"> |
| 50 | <col style="width: 247px"> | 50 | <col style="width: 247px"> |
| @@ -133,7 +133,7 @@ aclnnStatus aclnnReal( | |||
| 133 | 133 | ||
| 134 | 第一段接口完成入参校验,出现以下场景时报错: | 134 | 第一段接口完成入参校验,出现以下场景时报错: |
| 135 | 135 | ||
| 136 | - <table style="undefined;table-layout: fixed; width: 1148px"><colgroup> | 136 | + <table style="table-layout: fixed; width: 1148px"><colgroup> |
| 137 | <col style="width: 286px"> | 137 | <col style="width: 286px"> |
| 138 | <col style="width: 124px"> | 138 | <col style="width: 124px"> |
| 139 | <col style="width: 738px"> | 139 | <col style="width: 738px"> |
| @@ -162,7 +162,7 @@ aclnnStatus aclnnReal( | |||
| 162 | 162 | ||
| 163 | - **参数说明:** | 163 | - **参数说明:** |
| 164 | 164 | ||
| 165 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 165 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 166 | <col style="width: 167px"> | 166 | <col style="width: 167px"> |
| 167 | <col style="width: 134px"> | 167 | <col style="width: 134px"> |
| 168 | <col style="width: 848px"> | 168 | <col style="width: 848px"> |
| @@ -309,7 +309,7 @@ int main() { | |||
| 309 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 309 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 310 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 310 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 311 | 311 | ||
| 312 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 312 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 313 | uint64_t workspaceSize = 0; | 313 | uint64_t workspaceSize = 0; |
| 314 | aclOpExecutor* executor; | 314 | aclOpExecutor* executor; |
| 315 | 315 | ||
| @@ -18,7 +18,7 @@ $$ | |||
| 18 | 18 | ||
| 19 | ## 参数说明 | 19 | ## 参数说明 |
| 20 | 20 | ||
| 21 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 21 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 22 | <col style="width: 146px"> | 22 | <col style="width: 146px"> |
| 23 | <col style="width: 110px"> | 23 | <col style="width: 110px"> |
| 24 | <col style="width: 301px"> | 24 | <col style="width: 301px"> |
| @@ -41,7 +41,7 @@ aclnnStatus aclnnRealDiv( | |||
| 41 | 41 | ||
| 42 | - **参数说明:** | 42 | - **参数说明:** |
| 43 | 43 | ||
| 44 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 44 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 45 | <col style="width: 146px"> | 45 | <col style="width: 146px"> |
| 46 | <col style="width: 110px"> | 46 | <col style="width: 110px"> |
| 47 | <col style="width: 301px"> | 47 | <col style="width: 301px"> |
| @@ -122,7 +122,7 @@ aclnnStatus aclnnRealDiv( | |||
| 122 | 122 | ||
| 123 | 第一段接口会完成入参校验,出现以下场景时报错: | 123 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 124 | 124 | ||
| 125 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 125 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 126 | <col style="width: 319px"> | 126 | <col style="width: 319px"> |
| 127 | <col style="width: 144px"> | 127 | <col style="width: 144px"> |
| 128 | <col style="width: 671px"> | 128 | <col style="width: 671px"> |
| @@ -156,7 +156,7 @@ aclnnStatus aclnnRealDiv( | |||
| 156 | ## aclnnRealDiv | 156 | ## aclnnRealDiv |
| 157 | 157 | ||
| 158 | - **参数说明:** | 158 | - **参数说明:** |
| 159 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 159 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 160 | <col style="width: 173px"> | 160 | <col style="width: 173px"> |
| 161 | <col style="width: 112px"> | 161 | <col style="width: 112px"> |
| 162 | <col style="width: 668px"> | 162 | <col style="width: 668px"> |
| @@ -18,7 +18,7 @@ $$ | |||
| 18 | 18 | ||
| 19 | ## 参数说明 | 19 | ## 参数说明 |
| 20 | 20 | ||
| 21 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 21 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 22 | <col style="width: 100px"> | 22 | <col style="width: 100px"> |
| 23 | <col style="width: 150px"> | 23 | <col style="width: 150px"> |
| 24 | <col style="width: 280px"> | 24 | <col style="width: 280px"> |
| @@ -40,14 +40,14 @@ $$ | |||
| 40 | <td>待进行倒数计算的入参,公式中的input。</td> | 40 | <td>待进行倒数计算的入参,公式中的input。</td> |
| 41 | <td>FLOAT、FLOAT16、BFLOAT16</td> | 41 | <td>FLOAT、FLOAT16、BFLOAT16</td> |
| 42 | <td>ND</td> | 42 | <td>ND</td> |
| 43 | - </tr> | 43 | + </tr> |
| 44 | <tr> | 44 | <tr> |
| 45 | <td>y</td> | 45 | <td>y</td> |
| 46 | <td>输出</td> | 46 | <td>输出</td> |
| 47 | <td>进行完倒数计算的出参,公式中的out。</td> | 47 | <td>进行完倒数计算的出参,公式中的out。</td> |
| 48 | <td>FLOAT、FLOAT16、BFLOAT16</td> | 48 | <td>FLOAT、FLOAT16、BFLOAT16</td> |
| 49 | <td>ND</td> | 49 | <td>ND</td> |
| 50 | - </tr> | 50 | + </tr> |
| 51 | </tbody></table> | 51 | </tbody></table> |
| 52 | 52 | ||
| 53 | ## 约束说明 | 53 | ## 约束说明 |
| @@ -52,7 +52,7 @@ $$ | |||
| 52 | 52 | ||
| 53 | 第一段接口完成入参校验,出现以下场景时报错: | 53 | 第一段接口完成入参校验,出现以下场景时报错: |
| 54 | 54 | ||
| 55 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 55 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 56 | <col style="width: 287px"> | 56 | <col style="width: 287px"> |
| 57 | <col style="width: 124px"> | 57 | <col style="width: 124px"> |
| 58 | <col style="width: 740px"> | 58 | <col style="width: 740px"> |
| @@ -93,7 +93,7 @@ $$ | |||
| 93 | 93 | ||
| 94 | - **参数说明:** | 94 | - **参数说明:** |
| 95 | 95 | ||
| 96 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 96 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 97 | <col style="width: 167px"> | 97 | <col style="width: 167px"> |
| 98 | <col style="width: 134px"> | 98 | <col style="width: 134px"> |
| 99 | <col style="width: 848px"> | 99 | <col style="width: 848px"> |
| @@ -148,7 +148,7 @@ $$ | |||
| 148 | 148 | ||
| 149 | 第一段接口完成入参校验,出现以下场景时报错: | 149 | 第一段接口完成入参校验,出现以下场景时报错: |
| 150 | 150 | ||
| 151 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 151 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 152 | <col style="width: 287px"> | 152 | <col style="width: 287px"> |
| 153 | <col style="width: 124px"> | 153 | <col style="width: 124px"> |
| 154 | <col style="width: 739px"> | 154 | <col style="width: 739px"> |
| @@ -183,7 +183,7 @@ $$ | |||
| 183 | 183 | ||
| 184 | - **参数说明:** | 184 | - **参数说明:** |
| 185 | 185 | ||
| 186 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 186 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 187 | <col style="width: 167px"> | 187 | <col style="width: 167px"> |
| 188 | <col style="width: 134px"> | 188 | <col style="width: 134px"> |
| 189 | <col style="width: 848px"> | 189 | <col style="width: 848px"> |
| @@ -317,7 +317,7 @@ int main() { | |||
| 317 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 317 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 318 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 318 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 319 | 319 | ||
| 320 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 320 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 321 | uint64_t workspaceSize = 0; | 321 | uint64_t workspaceSize = 0; |
| 322 | aclOpExecutor* executor; | 322 | aclOpExecutor* executor; |
| 323 | // 调用aclnnReciprocal第一段接口 | 323 | // 调用aclnnReciprocal第一段接口 |
| @@ -443,7 +443,7 @@ int main() { | |||
| 443 | ret = CreateAclTensor(selfRefHostData, selfRefShape, &selfRefDeviceAddr, aclDataType::ACL_FLOAT, &selfRef); | 443 | ret = CreateAclTensor(selfRefHostData, selfRefShape, &selfRefDeviceAddr, aclDataType::ACL_FLOAT, &selfRef); |
| 444 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 444 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 445 | 445 | ||
| 446 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 446 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 447 | uint64_t workspaceSize = 0; | 447 | uint64_t workspaceSize = 0; |
| 448 | aclOpExecutor* executor; | 448 | aclOpExecutor* executor; |
| 449 | // 调用aclnnInplaceReciprocal第一段接口 | 449 | // 调用aclnnInplaceReciprocal第一段接口 |
| @@ -42,7 +42,7 @@ aclnnStatus aclnnReduceMinV2( | |||
| 42 | 42 | ||
| 43 | - **参数说明** | 43 | - **参数说明** |
| 44 | 44 | ||
| 45 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 45 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 46 | <col style="width: 160px"> | 46 | <col style="width: 160px"> |
| 47 | <col style="width: 120px"> | 47 | <col style="width: 120px"> |
| 48 | <col style="width: 250px"> | 48 | <col style="width: 250px"> |
| @@ -133,7 +133,7 @@ aclnnStatus aclnnReduceMinV2( | |||
| 133 | 133 | ||
| 134 | 第一段接口完成入参校验,出现以下场景时报错: | 134 | 第一段接口完成入参校验,出现以下场景时报错: |
| 135 | 135 | ||
| 136 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 136 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 137 | <col style="width: 291px"> | 137 | <col style="width: 291px"> |
| 138 | <col style="width: 135px"> | 138 | <col style="width: 135px"> |
| 139 | <col style="width: 724px"> | 139 | <col style="width: 724px"> |
| @@ -174,7 +174,7 @@ aclnnStatus aclnnReduceMinV2( | |||
| 174 | 174 | ||
| 175 | - **参数说明** | 175 | - **参数说明** |
| 176 | 176 | ||
| 177 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 177 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 178 | <col style="width: 184px"> | 178 | <col style="width: 184px"> |
| 179 | <col style="width: 134px"> | 179 | <col style="width: 134px"> |
| 180 | <col style="width: 832px"> | 180 | <col style="width: 832px"> |
| @@ -16,16 +16,16 @@ | |||
| 16 | - 算子功能:计算指定维度(dim)的标准差和均值,这个dim可以是单个维度、维度列表或者None。 | 16 | - 算子功能:计算指定维度(dim)的标准差和均值,这个dim可以是单个维度、维度列表或者None。 |
| 17 | - 计算公式: | 17 | - 计算公式: |
| 18 | 假设 dim 为 $i$,则对该维度进行计算。$N$为该维度的 shape。取 $x_{i}$,求出该维度上的平均值 $\bar{x_{i}}$。 | 18 | 假设 dim 为 $i$,则对该维度进行计算。$N$为该维度的 shape。取 $x_{i}$,求出该维度上的平均值 $\bar{x_{i}}$。 |
| 19 | - | 19 | + |
| 20 | $$ | 20 | $$ |
| 21 | std = \sqrt{\frac{1}{max(0, N - \delta N)}\sum_{j=0}^{N-1}(x_{ij}-\bar{x_{i}})^2} | 21 | std = \sqrt{\frac{1}{max(0, N - \delta N)}\sum_{j=0}^{N-1}(x_{ij}-\bar{x_{i}})^2} |
| 22 | $$ | 22 | $$ |
| 23 | - | 23 | + |
| 24 | 当 `keepdim = true`时,reduce 后保留该维度,且输出 shape 中该维度值为 1;当 `keepdim = false`时,不保留。 | 24 | 当 `keepdim = true`时,reduce 后保留该维度,且输出 shape 中该维度值为 1;当 `keepdim = false`时,不保留。 |
| 25 | 25 | ||
| 26 | ## 参数说明 | 26 | ## 参数说明 |
| 27 | 27 | ||
| 28 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 28 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 29 | <col style="width: 100px"> | 29 | <col style="width: 100px"> |
| 30 | <col style="width: 150px"> | 30 | <col style="width: 150px"> |
| 31 | <col style="width: 280px"> | 31 | <col style="width: 280px"> |
| @@ -38,7 +38,7 @@ | |||
| 38 | 38 | ||
| 39 | ## 参数说明 | 39 | ## 参数说明 |
| 40 | 40 | ||
| 41 | -<table style="undefined;table-layout: fixed; width: 880px"><colgroup> | 41 | +<table style="table-layout: fixed; width: 880px"><colgroup> |
| 42 | <col style="width: 100px"> | 42 | <col style="width: 100px"> |
| 43 | <col style="width: 120px"> | 43 | <col style="width: 120px"> |
| 44 | <col style="width: 320px"> | 44 | <col style="width: 320px"> |
| @@ -58,7 +58,7 @@ aclnnStatus aclnnBatchNormStats( | |||
| 58 | 58 | ||
| 59 | - **参数说明:** | 59 | - **参数说明:** |
| 60 | 60 | ||
| 61 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 61 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 62 | <col style="width: 217px"> | 62 | <col style="width: 217px"> |
| 63 | <col style="width: 125px"> | 63 | <col style="width: 125px"> |
| 64 | <col style="width: 247px"> | 64 | <col style="width: 247px"> |
| @@ -151,7 +151,7 @@ aclnnStatus aclnnBatchNormStats( | |||
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现如下场景时报错: | 152 | 第一段接口完成入参校验,出现如下场景时报错: |
| 153 | 153 | ||
| 154 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 154 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 155 | <col style="width: 300px"> | 155 | <col style="width: 300px"> |
| 156 | <col style="width: 134px"> | 156 | <col style="width: 134px"> |
| 157 | <col style="width: 716px"> | 157 | <col style="width: 716px"> |
| @@ -189,7 +189,7 @@ aclnnStatus aclnnBatchNormStats( | |||
| 189 | 189 | ||
| 190 | - **参数说明:** | 190 | - **参数说明:** |
| 191 | 191 | ||
| 192 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 192 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 193 | <col style="width: 184px"> | 193 | <col style="width: 184px"> |
| 194 | <col style="width: 134px"> | 194 | <col style="width: 134px"> |
| 195 | <col style="width: 833px"> | 195 | <col style="width: 833px"> |
| @@ -359,14 +359,14 @@ int main() { | |||
| 359 | size * sizeof(meanData[0]), ACL_MEMCPY_DEVICE_TO_HOST); | 359 | size * sizeof(meanData[0]), ACL_MEMCPY_DEVICE_TO_HOST); |
| 360 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return ret); | 360 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return ret); |
| 361 | for (int64_t i = 0; i < size; i++) { | 361 | for (int64_t i = 0; i < size; i++) { |
| 362 | - LOG_PRINT("mean result[%ld] is: %f\n", i, meanData[i]); | 362 | + LOG_PRINT("result[%ld] is: %f\n", i, meanData[i]); |
| 363 | } | 363 | } |
| 364 | std::vector<float> invstdData(size, 0); | 364 | std::vector<float> invstdData(size, 0); |
| 365 | ret = aclrtMemcpy(invstdData.data(), invstdData.size() * sizeof(invstdData[0]), invstdDeviceAddr, | 365 | ret = aclrtMemcpy(invstdData.data(), invstdData.size() * sizeof(invstdData[0]), invstdDeviceAddr, |
| 366 | size * sizeof(invstdData[0]), ACL_MEMCPY_DEVICE_TO_HOST); | 366 | size * sizeof(invstdData[0]), ACL_MEMCPY_DEVICE_TO_HOST); |
| 367 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return ret); | 367 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return ret); |
| 368 | for (int64_t i = 0; i < size; i++) { | 368 | for (int64_t i = 0; i < size; i++) { |
| 369 | - LOG_PRINT("mean result[%ld] is: %f\n", i, invstdData[i]); | 369 | + LOG_PRINT("result[%ld] is: %f\n", i, invstdData[i]); |
| 370 | } | 370 | } |
| 371 | 371 | ||
| 372 | // 6.释放aclTensor和aclScalar,需要根据具体API的接口定义修改 | 372 | // 6.释放aclTensor和aclScalar,需要根据具体API的接口定义修改 |
| @@ -56,7 +56,7 @@ aclnnStatus aclnnStdMeanCorrection( | |||
| 56 | 56 | ||
| 57 | - **参数说明** | 57 | - **参数说明** |
| 58 | 58 | ||
| 59 | - <table style="undefined;table-layout: fixed; width: 1540px"><colgroup> | 59 | + <table style="table-layout: fixed; width: 1540px"><colgroup> |
| 60 | <col style="width: 248px"> | 60 | <col style="width: 248px"> |
| 61 | <col style="width: 131px"> | 61 | <col style="width: 131px"> |
| 62 | <col style="width: 265px"> | 62 | <col style="width: 265px"> |
| @@ -166,7 +166,7 @@ aclnnStatus aclnnStdMeanCorrection( | |||
| 166 | 166 | ||
| 167 | 第一段接口完成入参校验,出现以下场景时报错: | 167 | 第一段接口完成入参校验,出现以下场景时报错: |
| 168 | 168 | ||
| 169 | - <table style="undefined;table-layout: fixed; width: 1148px"><colgroup> | 169 | + <table style="table-layout: fixed; width: 1148px"><colgroup> |
| 170 | <col style="width: 287px"> | 170 | <col style="width: 287px"> |
| 171 | <col style="width: 124px"> | 171 | <col style="width: 124px"> |
| 172 | <col style="width: 737px"> | 172 | <col style="width: 737px"> |
| @@ -207,7 +207,7 @@ aclnnStatus aclnnStdMeanCorrection( | |||
| 207 | 207 | ||
| 208 | - **参数说明** | 208 | - **参数说明** |
| 209 | 209 | ||
| 210 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 210 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 211 | <col style="width: 167px"> | 211 | <col style="width: 167px"> |
| 212 | <col style="width: 134px"> | 212 | <col style="width: 134px"> |
| 213 | <col style="width: 848px"> | 213 | <col style="width: 848px"> |
| @@ -126,7 +126,7 @@ aclnnStatus aclnnRound( | |||
| 126 | ACL_MEMCPY_DEVICE_TO_HOST); | 126 | ACL_MEMCPY_DEVICE_TO_HOST); |
| 127 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); | 127 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); |
| 128 | for (int64_t i = 0; i < size; i++) { | 128 | for (int64_t i = 0; i < size; i++) { |
| 129 | - LOG_PRINT("mean result[%ld] is: %f\n", i, resultData[i]); | 129 | + LOG_PRINT("result[%ld] is: %f\n", i, resultData[i]); |
| 130 | } | 130 | } |
| 131 | } | 131 | } |
| 132 | 132 | ||
| @@ -205,7 +205,7 @@ aclnnStatus aclnnRound( | |||
| 205 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 205 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 206 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 206 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 207 | 207 | ||
| 208 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 208 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 209 | uint64_t workspaceSize = 0; | 209 | uint64_t workspaceSize = 0; |
| 210 | aclOpExecutor* executor; | 210 | aclOpExecutor* executor; |
| 211 | 211 | ||
| @@ -193,7 +193,7 @@ int main() { | |||
| 193 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 193 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 194 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 194 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 195 | 195 | ||
| 196 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 196 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 197 | uint64_t workspaceSize = 0; | 197 | uint64_t workspaceSize = 0; |
| 198 | aclOpExecutor* executor; | 198 | aclOpExecutor* executor; |
| 199 | // 调用aclnnRsqrt第一段接口 | 199 | // 调用aclnnRsqrt第一段接口 |
| @@ -21,7 +21,7 @@ $$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -16,7 +16,7 @@ $out_i=if(condition_i) ? self_i : other_i$ | |||
| 16 | 16 | ||
| 17 | ## 参数说明 | 17 | ## 参数说明 |
| 18 | 18 | ||
| 19 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 19 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 20 | <col style="width: 100px"> | 20 | <col style="width: 100px"> |
| 21 | <col style="width: 150px"> | 21 | <col style="width: 150px"> |
| 22 | <col style="width: 280px"> | 22 | <col style="width: 280px"> |
| @@ -38,14 +38,14 @@ $out_i=if(condition_i) ? self_i : other_i$ | |||
| 38 | <td>待进行select_v2计算的入参,公式中的condition。</td> | 38 | <td>待进行select_v2计算的入参,公式中的condition。</td> |
| 39 | <td>BOOL</td> | 39 | <td>BOOL</td> |
| 40 | <td>ND</td> | 40 | <td>ND</td> |
| 41 | - </tr> | 41 | + </tr> |
| 42 | <tr> | 42 | <tr> |
| 43 | <td>self</td> | 43 | <td>self</td> |
| 44 | <td>输入</td> | 44 | <td>输入</td> |
| 45 | <td>待进行select_v2计算的入参,公式中的self。</td> | 45 | <td>待进行select_v2计算的入参,公式中的self。</td> |
| 46 | <td>FLOAT、FLOAT16、BFLOAT16、INT32、UINT32、INT16、UINT16、INT8、UINT8、BOOL</td> | 46 | <td>FLOAT、FLOAT16、BFLOAT16、INT32、UINT32、INT16、UINT16、INT8、UINT8、BOOL</td> |
| 47 | <td>ND</td> | 47 | <td>ND</td> |
| 48 | - </tr> | 48 | + </tr> |
| 49 | <tr> | 49 | <tr> |
| 50 | <td>other</td> | 50 | <td>other</td> |
| 51 | <td>输入</td> | 51 | <td>输入</td> |
| @@ -41,7 +41,7 @@ aclnnStatus aclnnSWhere( | |||
| 41 | 41 | ||
| 42 | - **参数说明:** | 42 | - **参数说明:** |
| 43 | 43 | ||
| 44 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 44 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 45 | <col style="width: 146px"> | 45 | <col style="width: 146px"> |
| 46 | <col style="width: 110px"> | 46 | <col style="width: 110px"> |
| 47 | <col style="width: 301px"> | 47 | <col style="width: 301px"> |
| @@ -131,7 +131,7 @@ aclnnStatus aclnnSWhere( | |||
| 131 | 131 | ||
| 132 | 第一段接口会完成入参校验,出现以下场景时报错: | 132 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 133 | 133 | ||
| 134 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 134 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 135 | <col style="width: 319px"> | 135 | <col style="width: 319px"> |
| 136 | <col style="width: 144px"> | 136 | <col style="width: 144px"> |
| 137 | <col style="width: 671px"> | 137 | <col style="width: 671px"> |
| @@ -166,7 +166,7 @@ aclnnStatus aclnnSWhere( | |||
| 166 | 166 | ||
| 167 | - **参数说明:** | 167 | - **参数说明:** |
| 168 | 168 | ||
| 169 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 169 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 170 | <col style="width: 173px"> | 170 | <col style="width: 173px"> |
| 171 | <col style="width: 112px"> | 171 | <col style="width: 112px"> |
| 172 | <col style="width: 668px"> | 172 | <col style="width: 668px"> |
| @@ -13,7 +13,7 @@ | |||
| 13 | - 计算公式: | 13 | - 计算公式: |
| 14 | 14 | ||
| 15 | $$ | 15 | $$ |
| 16 | - \text{out}_{i}= | 16 | + \text{out}_{i}= |
| 17 | \begin{cases} | 17 | \begin{cases} |
| 18 | 1 & \text{if } \text{input}_{i}>0 \\[4pt] | 18 | 1 & \text{if } \text{input}_{i}>0 \\[4pt] |
| 19 | 0 & \text{if } \text{input}_{i}=0 \\[4pt] | 19 | 0 & \text{if } \text{input}_{i}=0 \\[4pt] |
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | **参数说明:** | 24 | **参数说明:** |
| 25 | 25 | ||
| 26 | - <table style="undefined;table-layout: fixed; width: 1330px"><colgroup> | 26 | + <table style="table-layout: fixed; width: 1330px"><colgroup> |
| 27 | <col style="width: 101px"> | 27 | <col style="width: 101px"> |
| 28 | <col style="width: 115px"> | 28 | <col style="width: 115px"> |
| 29 | <col style="width: 220px"> | 29 | <col style="width: 220px"> |
| @@ -76,7 +76,7 @@ | |||
| 76 | 76 | ||
| 77 | | 调用方式 | 调用样例 | 说明 | | 77 | | 调用方式 | 调用样例 | 说明 | |
| 78 | |--------------|------------------------------------------------------------------------|--------------------------------------------------------------| | 78 | |--------------|------------------------------------------------------------------------|--------------------------------------------------------------| |
| 79 | -| aclnn调用 | [test_aclnn_sign](./examples/test_aclnn_sign.cpp) | 通过[aclnnSign](./docs/aclnnSign.md)接口方式调用Sign算子。 | | 79 | +| aclnn调用 | [test_aclnn_sign](./examples/test_aclnn_sign.cpp) | 通过[aclnnSign](./docs/aclnnSign.md)接口方式调用Sign算子。 | |
| 80 | 80 | ||
| 81 | ## 贡献说明 | 81 | ## 贡献说明 |
| 82 | 82 | ||
| @@ -45,7 +45,7 @@ aclnnStatus aclnnSign( | |||
| 45 | 45 | ||
| 46 | - **参数说明:** | 46 | - **参数说明:** |
| 47 | 47 | ||
| 48 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 48 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 49 | <col style="width: 146px"> | 49 | <col style="width: 146px"> |
| 50 | <col style="width: 110px"> | 50 | <col style="width: 110px"> |
| 51 | <col style="width: 301px"> | 51 | <col style="width: 301px"> |
| @@ -115,7 +115,7 @@ aclnnStatus aclnnSign( | |||
| 115 | 115 | ||
| 116 | 第一段接口会完成入参校验,出现以下场景时报错: | 116 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 117 | 117 | ||
| 118 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 118 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 119 | <col style="width: 319px"> | 119 | <col style="width: 319px"> |
| 120 | <col style="width: 144px"> | 120 | <col style="width: 144px"> |
| 121 | <col style="width: 671px"> | 121 | <col style="width: 671px"> |
| @@ -150,7 +150,7 @@ aclnnStatus aclnnSign( | |||
| 150 | 150 | ||
| 151 | - **参数说明:** | 151 | - **参数说明:** |
| 152 | 152 | ||
| 153 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 153 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 154 | <col style="width: 173px"> | 154 | <col style="width: 173px"> |
| 155 | <col style="width: 112px"> | 155 | <col style="width: 112px"> |
| 156 | <col style="width: 668px"> | 156 | <col style="width: 668px"> |
| @@ -281,7 +281,7 @@ int main() { | |||
| 281 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 281 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 282 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 282 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 283 | 283 | ||
| 284 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 284 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 285 | uint64_t workspaceSize = 0; | 285 | uint64_t workspaceSize = 0; |
| 286 | aclOpExecutor* executor; | 286 | aclOpExecutor* executor; |
| 287 | // 调用aclnnSign第一段接口 | 287 | // 调用aclnnSign第一段接口 |
| @@ -12,7 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | ## 算子原型 | 13 | ## 算子原型 |
| 14 | 14 | ||
| 15 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 15 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 16 | <col style="width: 100px"> | 16 | <col style="width: 100px"> |
| 17 | <col style="width: 150px"> | 17 | <col style="width: 150px"> |
| 18 | <col style="width: 280px"> | 18 | <col style="width: 280px"> |
| @@ -22,7 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | - **参数说明**: | 23 | - **参数说明**: |
| 24 | 24 | ||
| 25 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 25 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 26 | <col style="width: 170px"> | 26 | <col style="width: 170px"> |
| 27 | <col style="width: 120px"> | 27 | <col style="width: 120px"> |
| 28 | <col style="width: 271px"> | 28 | <col style="width: 271px"> |
| @@ -103,7 +103,7 @@ | |||
| 103 | 103 | ||
| 104 | 第一段接口完成入参校验,出现以下场景时报错: | 104 | 第一段接口完成入参校验,出现以下场景时报错: |
| 105 | 105 | ||
| 106 | - <table style="undefined;table-layout: fixed; width: 1148px"><colgroup> | 106 | + <table style="table-layout: fixed; width: 1148px"><colgroup> |
| 107 | <col style="width: 300px"> | 107 | <col style="width: 300px"> |
| 108 | <col style="width: 136px"> | 108 | <col style="width: 136px"> |
| 109 | <col style="width: 712px"> | 109 | <col style="width: 712px"> |
| @@ -141,7 +141,7 @@ | |||
| 141 | 141 | ||
| 142 | - **参数说明**: | 142 | - **参数说明**: |
| 143 | 143 | ||
| 144 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 144 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 145 | <col style="width: 167px"> | 145 | <col style="width: 167px"> |
| 146 | <col style="width: 134px"> | 146 | <col style="width: 134px"> |
| 147 | <col style="width: 848px"> | 147 | <col style="width: 848px"> |
| @@ -297,7 +297,7 @@ int aclnnSignBitsPackTest(int32_t deviceId, aclrtStream& stream) { | |||
| 297 | std::unique_ptr<void, aclError (*)(void *)> outDeviceAddrPtr(outDeviceAddr, aclrtFree); | 297 | std::unique_ptr<void, aclError (*)(void *)> outDeviceAddrPtr(outDeviceAddr, aclrtFree); |
| 298 | CHECK_FREE_RET(ret == ACL_SUCCESS, return ret); | 298 | CHECK_FREE_RET(ret == ACL_SUCCESS, return ret); |
| 299 | 299 | ||
| 300 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 300 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 301 | uint64_t workspaceSize = 0; | 301 | uint64_t workspaceSize = 0; |
| 302 | aclOpExecutor* executor; | 302 | aclOpExecutor* executor; |
| 303 | // 调用aclnnSignBitsPack第一段接口 | 303 | // 调用aclnnSignBitsPack第一段接口 |
| @@ -14,7 +14,7 @@ | |||
| 14 | 14 | ||
| 15 | ## 参数说明 | 15 | ## 参数说明 |
| 16 | 16 | ||
| 17 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 17 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 18 | <col style="width: 100px"> | 18 | <col style="width: 100px"> |
| 19 | <col style="width: 150px"> | 19 | <col style="width: 150px"> |
| 20 | <col style="width: 280px"> | 20 | <col style="width: 280px"> |
| @@ -38,7 +38,7 @@ | |||
| 38 | 38 | ||
| 39 | 第一段接口完成入参校验,出现以下场景时报错: | 39 | 第一段接口完成入参校验,出现以下场景时报错: |
| 40 | 40 | ||
| 41 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 41 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 42 | <col style="width: 300px"> | 42 | <col style="width: 300px"> |
| 43 | <col style="width: 136px"> | 43 | <col style="width: 136px"> |
| 44 | <col style="width: 713px"> | 44 | <col style="width: 713px"> |
| @@ -79,7 +79,7 @@ | |||
| 79 | 79 | ||
| 80 | - **参数说明:** | 80 | - **参数说明:** |
| 81 | 81 | ||
| 82 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 82 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 83 | <col style="width: 167px"> | 83 | <col style="width: 167px"> |
| 84 | <col style="width: 134px"> | 84 | <col style="width: 134px"> |
| 85 | <col style="width: 848px"> | 85 | <col style="width: 848px"> |
| @@ -218,7 +218,7 @@ int main() { | |||
| 218 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 218 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 219 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 219 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 220 | 220 | ||
| 221 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 221 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 222 | uint64_t workspaceSize = 0; | 222 | uint64_t workspaceSize = 0; |
| 223 | aclOpExecutor* executor; | 223 | aclOpExecutor* executor; |
| 224 | // 调用aclnnSignBitsUnpack第一段接口 | 224 | // 调用aclnnSignBitsUnpack第一段接口 |
| @@ -191,7 +191,7 @@ int main() { | |||
| 191 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); | 191 | ret = CreateAclTensor(outHostData, outShape, &outDeviceAddr, aclDataType::ACL_FLOAT, &out); |
| 192 | CHECK_RET(ret == ACL_SUCCESS, return ret); | 192 | CHECK_RET(ret == ACL_SUCCESS, return ret); |
| 193 | 193 | ||
| 194 | - // 3. 调用CANN算子库API,需要修改为具体的Api名称 | 194 | + // 3. 调用CANN算子库API,需要修改为具体的API名称 |
| 195 | uint64_t workspaceSize = 0; | 195 | uint64_t workspaceSize = 0; |
| 196 | aclOpExecutor* executor; | 196 | aclOpExecutor* executor; |
| 197 | // 调用aclnnSin第一段接口 | 197 | // 调用aclnnSin第一段接口 |
| @@ -45,7 +45,7 @@ aclnnStatus aclnnSqrt( | |||
| 45 | 45 | ||
| 46 | - **参数说明:** | 46 | - **参数说明:** |
| 47 | 47 | ||
| 48 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 48 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 49 | <col style="width: 146px"> | 49 | <col style="width: 146px"> |
| 50 | <col style="width: 110px"> | 50 | <col style="width: 110px"> |
| 51 | <col style="width: 301px"> | 51 | <col style="width: 301px"> |
| @@ -115,7 +115,7 @@ aclnnStatus aclnnSqrt( | |||
| 115 | 115 | ||
| 116 | 第一段接口会完成入参校验,出现以下场景时报错: | 116 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 117 | 117 | ||
| 118 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 118 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 119 | <col style="width: 319px"> | 119 | <col style="width: 319px"> |
| 120 | <col style="width: 144px"> | 120 | <col style="width: 144px"> |
| 121 | <col style="width: 671px"> | 121 | <col style="width: 671px"> |
| @@ -150,7 +150,7 @@ aclnnStatus aclnnSqrt( | |||
| 150 | 150 | ||
| 151 | - **参数说明:** | 151 | - **参数说明:** |
| 152 | 152 | ||
| 153 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 153 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 154 | <col style="width: 173px"> | 154 | <col style="width: 173px"> |
| 155 | <col style="width: 112px"> | 155 | <col style="width: 112px"> |
| 156 | <col style="width: 668px"> | 156 | <col style="width: 668px"> |
| @@ -21,7 +21,7 @@ $$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -44,7 +44,7 @@ aclnnStatus aclnnTruncateDiv( | |||
| 44 | 44 | ||
| 45 | - **参数说明:** | 45 | - **参数说明:** |
| 46 | 46 | ||
| 47 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 47 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 48 | <col style="width: 146px"> | 48 | <col style="width: 146px"> |
| 49 | <col style="width: 110px"> | 49 | <col style="width: 110px"> |
| 50 | <col style="width: 301px"> | 50 | <col style="width: 301px"> |
| @@ -125,7 +125,7 @@ aclnnStatus aclnnTruncateDiv( | |||
| 125 | 125 | ||
| 126 | 第一段接口会完成入参校验,出现以下场景时报错: | 126 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 127 | 127 | ||
| 128 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 128 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 129 | <col style="width: 319px"> | 129 | <col style="width: 319px"> |
| 130 | <col style="width: 144px"> | 130 | <col style="width: 144px"> |
| 131 | <col style="width: 671px"> | 131 | <col style="width: 671px"> |
| @@ -157,7 +157,7 @@ aclnnStatus aclnnTruncateDiv( | |||
| 157 | 157 | ||
| 158 | - **参数说明:** | 158 | - **参数说明:** |
| 159 | 159 | ||
| 160 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 160 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 161 | <col style="width: 173px"> | 161 | <col style="width: 173px"> |
| 162 | <col style="width: 112px"> | 162 | <col style="width: 112px"> |
| 163 | <col style="width: 668px"> | 163 | <col style="width: 668px"> |
| @@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | ## 参数说明 | 28 | ## 参数说明 |
| 29 | 29 | ||
| 30 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 30 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 31 | <col style="width: 170px"> | 31 | <col style="width: 170px"> |
| 32 | <col style="width: 170px"> | 32 | <col style="width: 170px"> |
| 33 | <col style="width: 310px"> | 33 | <col style="width: 310px"> |
| @@ -44,7 +44,7 @@ aclnnStatus aclnnTruncateMod( | |||
| 44 | 44 | ||
| 45 | - **参数说明:** | 45 | - **参数说明:** |
| 46 | 46 | ||
| 47 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 47 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 48 | <col style="width: 146px"> | 48 | <col style="width: 146px"> |
| 49 | <col style="width: 110px"> | 49 | <col style="width: 110px"> |
| 50 | <col style="width: 301px"> | 50 | <col style="width: 301px"> |
| @@ -125,7 +125,7 @@ aclnnStatus aclnnTruncateMod( | |||
| 125 | 125 | ||
| 126 | 第一段接口会完成入参校验,出现以下场景时报错: | 126 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 127 | 127 | ||
| 128 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 128 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 129 | <col style="width: 319px"> | 129 | <col style="width: 319px"> |
| 130 | <col style="width: 144px"> | 130 | <col style="width: 144px"> |
| 131 | <col style="width: 671px"> | 131 | <col style="width: 671px"> |
| @@ -160,7 +160,7 @@ aclnnStatus aclnnTruncateMod( | |||
| 160 | 160 | ||
| 161 | - **参数说明:** | 161 | - **参数说明:** |
| 162 | 162 | ||
| 163 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 163 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 164 | <col style="width: 173px"> | 164 | <col style="width: 173px"> |
| 165 | <col style="width: 112px"> | 165 | <col style="width: 112px"> |
| 166 | <col style="width: 668px"> | 166 | <col style="width: 668px"> |
| @@ -83,7 +83,7 @@ aclnnStatus aclnnInplaceBernoulli( | |||
| 83 | 83 | ||
| 84 | - **参数说明:** | 84 | - **参数说明:** |
| 85 | 85 | ||
| 86 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 86 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 87 | <col style="width: 220px"> | 87 | <col style="width: 220px"> |
| 88 | <col style="width: 124px"> | 88 | <col style="width: 124px"> |
| 89 | <col style="width: 212px"> | 89 | <col style="width: 212px"> |
| @@ -189,7 +189,7 @@ aclnnStatus aclnnInplaceBernoulli( | |||
| 189 | 189 | ||
| 190 | 第一段接口完成入参校验,出现如下场景时报错: | 190 | 第一段接口完成入参校验,出现如下场景时报错: |
| 191 | 191 | ||
| 192 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 192 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 193 | <col style="width: 288px"> | 193 | <col style="width: 288px"> |
| 194 | <col style="width: 114px"> | 194 | <col style="width: 114px"> |
| 195 | <col style="width: 747px"> | 195 | <col style="width: 747px"> |
| @@ -233,7 +233,7 @@ aclnnStatus aclnnInplaceBernoulli( | |||
| 233 | 233 | ||
| 234 | - **参数说明:** | 234 | - **参数说明:** |
| 235 | 235 | ||
| 236 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 236 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 237 | <col style="width: 153px"> | 237 | <col style="width: 153px"> |
| 238 | <col style="width: 124px"> | 238 | <col style="width: 124px"> |
| 239 | <col style="width: 872px"> | 239 | <col style="width: 872px"> |
| @@ -276,7 +276,7 @@ aclnnStatus aclnnInplaceBernoulli( | |||
| 276 | 276 | ||
| 277 | - **参数说明:** | 277 | - **参数说明:** |
| 278 | 278 | ||
| 279 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 279 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 280 | <col style="width: 220px"> | 280 | <col style="width: 220px"> |
| 281 | <col style="width: 124px"> | 281 | <col style="width: 124px"> |
| 282 | <col style="width: 212px"> | 282 | <col style="width: 212px"> |
| @@ -371,7 +371,7 @@ aclnnStatus aclnnInplaceBernoulli( | |||
| 371 | 371 | ||
| 372 | 第一段接口完成入参校验,出现如下场景时报错: | 372 | 第一段接口完成入参校验,出现如下场景时报错: |
| 373 | 373 | ||
| 374 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 374 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 375 | <col style="width: 288px"> | 375 | <col style="width: 288px"> |
| 376 | <col style="width: 114px"> | 376 | <col style="width: 114px"> |
| 377 | <col style="width: 747px"> | 377 | <col style="width: 747px"> |
| @@ -409,7 +409,7 @@ aclnnStatus aclnnInplaceBernoulli( | |||
| 409 | 409 | ||
| 410 | - **参数说明:** | 410 | - **参数说明:** |
| 411 | 411 | ||
| 412 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 412 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 413 | <col style="width: 153px"> | 413 | <col style="width: 153px"> |
| 414 | <col style="width: 124px"> | 414 | <col style="width: 124px"> |
| 415 | <col style="width: 872px"> | 415 | <col style="width: 872px"> |
| @@ -81,7 +81,7 @@ aclnnStatus aclnnInplaceBernoulliTensor( | |||
| 81 | 81 | ||
| 82 | - **参数说明:** | 82 | - **参数说明:** |
| 83 | 83 | ||
| 84 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 84 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 85 | <col style="width: 170px"> | 85 | <col style="width: 170px"> |
| 86 | <col style="width: 120px"> | 86 | <col style="width: 120px"> |
| 87 | <col style="width: 300px"> | 87 | <col style="width: 300px"> |
| @@ -189,7 +189,7 @@ aclnnStatus aclnnInplaceBernoulliTensor( | |||
| 189 | 189 | ||
| 190 | 第一段接口完成入参校验,出现以下场景时报错: | 190 | 第一段接口完成入参校验,出现以下场景时报错: |
| 191 | 191 | ||
| 192 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 192 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 193 | <col style="width: 288px"> | 193 | <col style="width: 288px"> |
| 194 | <col style="width: 114px"> | 194 | <col style="width: 114px"> |
| 195 | <col style="width: 747px"> | 195 | <col style="width: 747px"> |
| @@ -227,7 +227,7 @@ aclnnStatus aclnnInplaceBernoulliTensor( | |||
| 227 | 227 | ||
| 228 | - **参数说明:** | 228 | - **参数说明:** |
| 229 | 229 | ||
| 230 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 230 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 231 | <col style="width: 153px"> | 231 | <col style="width: 153px"> |
| 232 | <col style="width: 124px"> | 232 | <col style="width: 124px"> |
| 233 | <col style="width: 872px"> | 233 | <col style="width: 872px"> |
| @@ -270,7 +270,7 @@ aclnnStatus aclnnInplaceBernoulliTensor( | |||
| 270 | 270 | ||
| 271 | - **参数说明:** | 271 | - **参数说明:** |
| 272 | 272 | ||
| 273 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 273 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 274 | <col style="width: 170px"> | 274 | <col style="width: 170px"> |
| 275 | <col style="width: 120px"> | 275 | <col style="width: 120px"> |
| 276 | <col style="width: 300px"> | 276 | <col style="width: 300px"> |
| @@ -366,7 +366,7 @@ aclnnStatus aclnnInplaceBernoulliTensor( | |||
| 366 | 366 | ||
| 367 | 第一段接口完成入参校验,出现以下场景时报错: | 367 | 第一段接口完成入参校验,出现以下场景时报错: |
| 368 | 368 | ||
| 369 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 369 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 370 | <col style="width: 288px"> | 370 | <col style="width: 288px"> |
| 371 | <col style="width: 114px"> | 371 | <col style="width: 114px"> |
| 372 | <col style="width: 747px"> | 372 | <col style="width: 747px"> |
| @@ -398,7 +398,7 @@ aclnnStatus aclnnInplaceBernoulliTensor( | |||
| 398 | 398 | ||
| 399 | - **参数说明:** | 399 | - **参数说明:** |
| 400 | 400 | ||
| 401 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 401 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 402 | <col style="width: 153px"> | 402 | <col style="width: 153px"> |
| 403 | <col style="width: 124px"> | 403 | <col style="width: 124px"> |
| 404 | <col style="width: 872px"> | 404 | <col style="width: 872px"> |
| @@ -21,7 +21,7 @@ $$out_i=|input_i|$$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -57,7 +57,7 @@ aclnnStatus aclnnAbs( | |||
| 57 | 57 | ||
| 58 | - **参数说明:** | 58 | - **参数说明:** |
| 59 | 59 | ||
| 60 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 60 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 61 | <col style="width: 146px"> | 61 | <col style="width: 146px"> |
| 62 | <col style="width: 110px"> | 62 | <col style="width: 110px"> |
| 63 | <col style="width: 301px"> | 63 | <col style="width: 301px"> |
| @@ -132,7 +132,7 @@ aclnnStatus aclnnAbs( | |||
| 132 | 132 | ||
| 133 | 第一段接口会完成入参校验,出现以下场景时报错: | 133 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 134 | 134 | ||
| 135 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 135 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 136 | <col style="width: 319px"> | 136 | <col style="width: 319px"> |
| 137 | <col style="width: 144px"> | 137 | <col style="width: 144px"> |
| 138 | <col style="width: 671px"> | 138 | <col style="width: 671px"> |
| @@ -169,7 +169,7 @@ aclnnStatus aclnnAbs( | |||
| 169 | ## aclnnAbs | 169 | ## aclnnAbs |
| 170 | 170 | ||
| 171 | - **参数说明:** | 171 | - **参数说明:** |
| 172 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 172 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 173 | <col style="width: 173px"> | 173 | <col style="width: 173px"> |
| 174 | <col style="width: 112px"> | 174 | <col style="width: 112px"> |
| 175 | <col style="width: 668px"> | 175 | <col style="width: 668px"> |
| @@ -21,7 +21,7 @@ $$out_i=dy_i \times sign(y_i)$$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -21,7 +21,7 @@ $$y = \sum_{i=0}^{N-1} x_i$$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -51,7 +51,7 @@ aclnnStatus aclnnSum( | |||
| 51 | 51 | ||
| 52 | - **参数说明:** | 52 | - **参数说明:** |
| 53 | 53 | ||
| 54 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 54 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 55 | <col style="width: 217px"> | 55 | <col style="width: 217px"> |
| 56 | <col style="width: 125px"> | 56 | <col style="width: 125px"> |
| 57 | <col style="width: 247px"> | 57 | <col style="width: 247px"> |
| @@ -121,7 +121,7 @@ aclnnStatus aclnnSum( | |||
| 121 | 121 | ||
| 122 | 第一段接口完成入参校验,出现如下场景时报错: | 122 | 第一段接口完成入参校验,出现如下场景时报错: |
| 123 | 123 | ||
| 124 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 124 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 125 | <col style="width: 300px"> | 125 | <col style="width: 300px"> |
| 126 | <col style="width: 134px"> | 126 | <col style="width: 134px"> |
| 127 | <col style="width: 716px"> | 127 | <col style="width: 716px"> |
| @@ -156,7 +156,7 @@ aclnnStatus aclnnSum( | |||
| 156 | 156 | ||
| 157 | - **参数说明:** | 157 | - **参数说明:** |
| 158 | 158 | ||
| 159 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 159 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 160 | <col style="width: 184px"> | 160 | <col style="width: 184px"> |
| 161 | <col style="width: 134px"> | 161 | <col style="width: 134px"> |
| 162 | <col style="width: 833px"> | 162 | <col style="width: 833px"> |
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | ## 参数说明 | 24 | ## 参数说明 |
| 25 | 25 | ||
| 26 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 26 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 27 | <col style="width: 100px"> | 27 | <col style="width: 100px"> |
| 28 | <col style="width: 150px"> | 28 | <col style="width: 150px"> |
| 29 | <col style="width: 190px"> | 29 | <col style="width: 190px"> |
| @@ -75,7 +75,7 @@ aclnnStatus aclnnInplaceAcos( | |||
| 75 | 75 | ||
| 76 | - **参数说明:** | 76 | - **参数说明:** |
| 77 | 77 | ||
| 78 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 78 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 79 | <col style="width: 220px"> | 79 | <col style="width: 220px"> |
| 80 | <col style="width: 120px"> | 80 | <col style="width: 120px"> |
| 81 | <col style="width: 350px"> | 81 | <col style="width: 350px"> |
| @@ -149,7 +149,7 @@ aclnnStatus aclnnInplaceAcos( | |||
| 149 | 149 | ||
| 150 | 第一段接口完成入参校验,出现以下场景时报错: | 150 | 第一段接口完成入参校验,出现以下场景时报错: |
| 151 | 151 | ||
| 152 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 152 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 153 | <col style="width: 288px"> | 153 | <col style="width: 288px"> |
| 154 | <col style="width: 114px"> | 154 | <col style="width: 114px"> |
| 155 | <col style="width: 747px"> | 155 | <col style="width: 747px"> |
| @@ -184,7 +184,7 @@ aclnnStatus aclnnInplaceAcos( | |||
| 184 | 184 | ||
| 185 | - **参数说明:** | 185 | - **参数说明:** |
| 186 | 186 | ||
| 187 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 187 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 188 | <col style="width: 184px"> | 188 | <col style="width: 184px"> |
| 189 | <col style="width: 134px"> | 189 | <col style="width: 134px"> |
| 190 | <col style="width: 833px"> | 190 | <col style="width: 833px"> |
| @@ -227,7 +227,7 @@ aclnnStatus aclnnInplaceAcos( | |||
| 227 | 227 | ||
| 228 | - **参数说明:** | 228 | - **参数说明:** |
| 229 | 229 | ||
| 230 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 230 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 231 | <col style="width: 220px"> | 231 | <col style="width: 220px"> |
| 232 | <col style="width: 120px"> | 232 | <col style="width: 120px"> |
| 233 | <col style="width: 350px"> | 233 | <col style="width: 350px"> |
| @@ -291,7 +291,7 @@ aclnnStatus aclnnInplaceAcos( | |||
| 291 | 291 | ||
| 292 | 第一段接口完成入参校验,出现以下场景时报错: | 292 | 第一段接口完成入参校验,出现以下场景时报错: |
| 293 | 293 | ||
| 294 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 294 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 295 | <col style="width: 288px"> | 295 | <col style="width: 288px"> |
| 296 | <col style="width: 114px"> | 296 | <col style="width: 114px"> |
| 297 | <col style="width: 747px"> | 297 | <col style="width: 747px"> |
| @@ -323,7 +323,7 @@ aclnnStatus aclnnInplaceAcos( | |||
| 323 | 323 | ||
| 324 | - **参数说明:** | 324 | - **参数说明:** |
| 325 | 325 | ||
| 326 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 326 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 327 | <col style="width: 184px"> | 327 | <col style="width: 184px"> |
| 328 | <col style="width: 134px"> | 328 | <col style="width: 134px"> |
| 329 | <col style="width: 833px"> | 329 | <col style="width: 833px"> |
| @@ -29,7 +29,7 @@ | |||
| 29 | 29 | ||
| 30 | ## 参数说明 | 30 | ## 参数说明 |
| 31 | 31 | ||
| 32 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 32 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 33 | <col style="width: 170px"> | 33 | <col style="width: 170px"> |
| 34 | <col style="width: 170px"> | 34 | <col style="width: 170px"> |
| 35 | <col style="width: 310px"> | 35 | <col style="width: 310px"> |
| @@ -75,7 +75,7 @@ aclnnStatus aclnnInplaceAcosh( | |||
| 75 | 75 | ||
| 76 | - **参数说明:** | 76 | - **参数说明:** |
| 77 | 77 | ||
| 78 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 78 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 79 | <col style="width: 220px"> | 79 | <col style="width: 220px"> |
| 80 | <col style="width: 120px"> | 80 | <col style="width: 120px"> |
| 81 | <col style="width: 350px"> | 81 | <col style="width: 350px"> |
| @@ -151,7 +151,7 @@ aclnnStatus aclnnInplaceAcosh( | |||
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现以下场景时报错: | 152 | 第一段接口完成入参校验,出现以下场景时报错: |
| 153 | 153 | ||
| 154 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 154 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 155 | <col style="width: 288px"> | 155 | <col style="width: 288px"> |
| 156 | <col style="width: 114px"> | 156 | <col style="width: 114px"> |
| 157 | <col style="width: 747px"> | 157 | <col style="width: 747px"> |
| @@ -186,7 +186,7 @@ aclnnStatus aclnnInplaceAcosh( | |||
| 186 | 186 | ||
| 187 | - **参数说明:** | 187 | - **参数说明:** |
| 188 | 188 | ||
| 189 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 189 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 190 | <col style="width: 184px"> | 190 | <col style="width: 184px"> |
| 191 | <col style="width: 134px"> | 191 | <col style="width: 134px"> |
| 192 | <col style="width: 833px"> | 192 | <col style="width: 833px"> |
| @@ -229,7 +229,7 @@ aclnnStatus aclnnInplaceAcosh( | |||
| 229 | 229 | ||
| 230 | - **参数说明:** | 230 | - **参数说明:** |
| 231 | 231 | ||
| 232 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 232 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 233 | <col style="width: 220px"> | 233 | <col style="width: 220px"> |
| 234 | <col style="width: 120px"> | 234 | <col style="width: 120px"> |
| 235 | <col style="width: 350px"> | 235 | <col style="width: 350px"> |
| @@ -294,7 +294,7 @@ aclnnStatus aclnnInplaceAcosh( | |||
| 294 | 294 | ||
| 295 | 第一段接口完成入参校验,出现以下场景时报错: | 295 | 第一段接口完成入参校验,出现以下场景时报错: |
| 296 | 296 | ||
| 297 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 297 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 298 | <col style="width: 288px"> | 298 | <col style="width: 288px"> |
| 299 | <col style="width: 114px"> | 299 | <col style="width: 114px"> |
| 300 | <col style="width: 747px"> | 300 | <col style="width: 747px"> |
| @@ -323,7 +323,7 @@ aclnnStatus aclnnInplaceAcosh( | |||
| 323 | 323 | ||
| 324 | - **参数说明:** | 324 | - **参数说明:** |
| 325 | 325 | ||
| 326 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 326 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 327 | <col style="width: 184px"> | 327 | <col style="width: 184px"> |
| 328 | <col style="width: 134px"> | 328 | <col style="width: 134px"> |
| 329 | <col style="width: 833px"> | 329 | <col style="width: 833px"> |
| @@ -29,7 +29,7 @@ | |||
| 29 | 29 | ||
| 30 | ## 参数说明 | 30 | ## 参数说明 |
| 31 | 31 | ||
| 32 | -<table style="undefined;table-layout: fixed; width: 1576px"><colgroup> | 32 | +<table style="table-layout: fixed; width: 1576px"><colgroup> |
| 33 | <col style="width: 170px"> | 33 | <col style="width: 170px"> |
| 34 | <col style="width: 170px"> | 34 | <col style="width: 170px"> |
| 35 | <col style="width: 310px"> | 35 | <col style="width: 310px"> |
| @@ -24,7 +24,7 @@ $$ | |||
| 24 | 24 | ||
| 25 | ## 参数说明 | 25 | ## 参数说明 |
| 26 | 26 | ||
| 27 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 27 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 28 | <col style="width: 100px"> | 28 | <col style="width: 100px"> |
| 29 | <col style="width: 150px"> | 29 | <col style="width: 150px"> |
| 30 | <col style="width: 280px"> | 30 | <col style="width: 280px"> |
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | ## 参数说明 | 24 | ## 参数说明 |
| 25 | 25 | ||
| 26 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 26 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 27 | <col style="width: 100px"> | 27 | <col style="width: 100px"> |
| 28 | <col style="width: 150px"> | 28 | <col style="width: 150px"> |
| 29 | <col style="width: 190px"> | 29 | <col style="width: 190px"> |
| @@ -80,7 +80,7 @@ | |||
| 80 | 80 | ||
| 81 | - **参数说明:** | 81 | - **参数说明:** |
| 82 | 82 | ||
| 83 | - <table style="undefined;table-layout: fixed; width: 1496px"><colgroup> | 83 | + <table style="table-layout: fixed; width: 1496px"><colgroup> |
| 84 | <col style="width: 149px"> | 84 | <col style="width: 149px"> |
| 85 | <col style="width: 120px"> | 85 | <col style="width: 120px"> |
| 86 | <col style="width: 205px"> | 86 | <col style="width: 205px"> |
| @@ -190,7 +190,7 @@ | |||
| 190 | 190 | ||
| 191 | 第一段接口完成入参校验,出现以下场景时报错: | 191 | 第一段接口完成入参校验,出现以下场景时报错: |
| 192 | 192 | ||
| 193 | - <table style="undefined;table-layout: fixed; width: 1154px"><colgroup> | 193 | + <table style="table-layout: fixed; width: 1154px"><colgroup> |
| 194 | <col style="width: 257px"> | 194 | <col style="width: 257px"> |
| 195 | <col style="width: 125px"> | 195 | <col style="width: 125px"> |
| 196 | <col style="width: 772px"> | 196 | <col style="width: 772px"> |
| @@ -237,7 +237,7 @@ | |||
| 237 | 237 | ||
| 238 | - **参数说明:** | 238 | - **参数说明:** |
| 239 | 239 | ||
| 240 | - <table style="undefined;table-layout: fixed; width: 1045px"><colgroup> | 240 | + <table style="table-layout: fixed; width: 1045px"><colgroup> |
| 241 | <col style="width: 148px"> | 241 | <col style="width: 148px"> |
| 242 | <col style="width: 125px"> | 242 | <col style="width: 125px"> |
| 243 | <col style="width: 772px"> | 243 | <col style="width: 772px"> |
| @@ -280,7 +280,7 @@ | |||
| 280 | 280 | ||
| 281 | - **参数说明:** | 281 | - **参数说明:** |
| 282 | 282 | ||
| 283 | - <table style="undefined;table-layout: fixed; width: 1496px"><colgroup> | 283 | + <table style="table-layout: fixed; width: 1496px"><colgroup> |
| 284 | <col style="width: 149px"> | 284 | <col style="width: 149px"> |
| 285 | <col style="width: 120px"> | 285 | <col style="width: 120px"> |
| 286 | <col style="width: 205px"> | 286 | <col style="width: 205px"> |
| @@ -375,7 +375,7 @@ | |||
| 375 | 375 | ||
| 376 | 第一段接口完成入参校验,出现以下场景时报错: | 376 | 第一段接口完成入参校验,出现以下场景时报错: |
| 377 | 377 | ||
| 378 | - <table style="undefined;table-layout: fixed; width: 1157px"><colgroup> | 378 | + <table style="table-layout: fixed; width: 1157px"><colgroup> |
| 379 | <col style="width: 258px"> | 379 | <col style="width: 258px"> |
| 380 | <col style="width: 124px"> | 380 | <col style="width: 124px"> |
| 381 | <col style="width: 775px"> | 381 | <col style="width: 775px"> |
| @@ -422,7 +422,7 @@ | |||
| 422 | 422 | ||
| 423 | - **参数说明:** | 423 | - **参数说明:** |
| 424 | 424 | ||
| 425 | - <table style="undefined;table-layout: fixed; width: 1045px"><colgroup> | 425 | + <table style="table-layout: fixed; width: 1045px"><colgroup> |
| 426 | <col style="width: 148px"> | 426 | <col style="width: 148px"> |
| 427 | <col style="width: 125px"> | 427 | <col style="width: 125px"> |
| 428 | <col style="width: 772px"> | 428 | <col style="width: 772px"> |
| @@ -80,7 +80,7 @@ | |||
| 80 | 80 | ||
| 81 | - **参数说明:** | 81 | - **参数说明:** |
| 82 | 82 | ||
| 83 | - <table style="undefined;table-layout: fixed; width: 1496px"><colgroup> | 83 | + <table style="table-layout: fixed; width: 1496px"><colgroup> |
| 84 | <col style="width: 149px"> | 84 | <col style="width: 149px"> |
| 85 | <col style="width: 120px"> | 85 | <col style="width: 120px"> |
| 86 | <col style="width: 205px"> | 86 | <col style="width: 205px"> |
| @@ -181,7 +181,7 @@ | |||
| 181 | 181 | ||
| 182 | 第一段接口完成入参校验,出现以下场景时报错: | 182 | 第一段接口完成入参校验,出现以下场景时报错: |
| 183 | 183 | ||
| 184 | - <table style="undefined;table-layout: fixed; width: 1154px"><colgroup> | 184 | + <table style="table-layout: fixed; width: 1154px"><colgroup> |
| 185 | <col style="width: 257px"> | 185 | <col style="width: 257px"> |
| 186 | <col style="width: 125px"> | 186 | <col style="width: 125px"> |
| 187 | <col style="width: 772px"> | 187 | <col style="width: 772px"> |
| @@ -225,7 +225,7 @@ | |||
| 225 | 225 | ||
| 226 | - **参数说明:** | 226 | - **参数说明:** |
| 227 | 227 | ||
| 228 | - <table style="undefined;table-layout: fixed; width: 1045px"><colgroup> | 228 | + <table style="table-layout: fixed; width: 1045px"><colgroup> |
| 229 | <col style="width: 148px"> | 229 | <col style="width: 148px"> |
| 230 | <col style="width: 125px"> | 230 | <col style="width: 125px"> |
| 231 | <col style="width: 772px"> | 231 | <col style="width: 772px"> |
| @@ -268,7 +268,7 @@ | |||
| 268 | 268 | ||
| 269 | - **参数说明:** | 269 | - **参数说明:** |
| 270 | 270 | ||
| 271 | - <table style="undefined;table-layout: fixed; width: 1496px"><colgroup> | 271 | + <table style="table-layout: fixed; width: 1496px"><colgroup> |
| 272 | <col style="width: 149px"> | 272 | <col style="width: 149px"> |
| 273 | <col style="width: 120px"> | 273 | <col style="width: 120px"> |
| 274 | <col style="width: 205px"> | 274 | <col style="width: 205px"> |
| @@ -353,7 +353,7 @@ | |||
| 353 | 353 | ||
| 354 | 第一段接口完成入参校验,出现以下场景时报错: | 354 | 第一段接口完成入参校验,出现以下场景时报错: |
| 355 | 355 | ||
| 356 | - <table style="undefined;table-layout: fixed; width: 1157px"><colgroup> | 356 | + <table style="table-layout: fixed; width: 1157px"><colgroup> |
| 357 | <col style="width: 258px"> | 357 | <col style="width: 258px"> |
| 358 | <col style="width: 124px"> | 358 | <col style="width: 124px"> |
| 359 | <col style="width: 775px"> | 359 | <col style="width: 775px"> |
| @@ -394,7 +394,7 @@ | |||
| 394 | 394 | ||
| 395 | - **参数说明:** | 395 | - **参数说明:** |
| 396 | 396 | ||
| 397 | - <table style="undefined;table-layout: fixed; width: 1045px"><colgroup> | 397 | + <table style="table-layout: fixed; width: 1045px"><colgroup> |
| 398 | <col style="width: 148px"> | 398 | <col style="width: 148px"> |
| 399 | <col style="width: 125px"> | 399 | <col style="width: 125px"> |
| 400 | <col style="width: 772px"> | 400 | <col style="width: 772px"> |
| @@ -58,7 +58,7 @@ | |||
| 58 | 58 | ||
| 59 | - **参数说明:** | 59 | - **参数说明:** |
| 60 | 60 | ||
| 61 | - <table style="undefined;table-layout: fixed; width: 1510px"><colgroup> | 61 | + <table style="table-layout: fixed; width: 1510px"><colgroup> |
| 62 | <col style="width: 153px"> | 62 | <col style="width: 153px"> |
| 63 | <col style="width: 120px"> | 63 | <col style="width: 120px"> |
| 64 | <col style="width: 219px"> | 64 | <col style="width: 219px"> |
| @@ -161,7 +161,7 @@ | |||
| 161 | 161 | ||
| 162 | 第一段接口完成入参校验,出现以下场景时报错: | 162 | 第一段接口完成入参校验,出现以下场景时报错: |
| 163 | 163 | ||
| 164 | - <table style="undefined;table-layout: fixed; width: 1110px"><colgroup> | 164 | + <table style="table-layout: fixed; width: 1110px"><colgroup> |
| 165 | <col style="width: 291px"> | 165 | <col style="width: 291px"> |
| 166 | <col style="width: 112px"> | 166 | <col style="width: 112px"> |
| 167 | <col style="width: 707px"> | 167 | <col style="width: 707px"> |
| @@ -205,7 +205,7 @@ | |||
| 205 | 205 | ||
| 206 | - **参数说明:** | 206 | - **参数说明:** |
| 207 | 207 | ||
| 208 | - <table style="undefined;table-layout: fixed; width: 1110px"><colgroup> | 208 | + <table style="table-layout: fixed; width: 1110px"><colgroup> |
| 209 | <col style="width: 153px"> | 209 | <col style="width: 153px"> |
| 210 | <col style="width: 124px"> | 210 | <col style="width: 124px"> |
| 211 | <col style="width: 833px"> | 211 | <col style="width: 833px"> |
| @@ -57,7 +57,7 @@ aclnnStatus aclnnInplaceAdds( | |||
| 57 | 57 | ||
| 58 | - **参数说明:** | 58 | - **参数说明:** |
| 59 | 59 | ||
| 60 | - <table style="undefined;table-layout: fixed; width: 1549px"><colgroup> | 60 | + <table style="table-layout: fixed; width: 1549px"><colgroup> |
| 61 | <col style="width: 160px"> | 61 | <col style="width: 160px"> |
| 62 | <col style="width: 137px"> | 62 | <col style="width: 137px"> |
| 63 | <col style="width: 259px"> | 63 | <col style="width: 259px"> |
| @@ -152,7 +152,7 @@ aclnnStatus aclnnInplaceAdds( | |||
| 152 | 152 | ||
| 153 | 第一段接口完成入参校验,出现以下场景时报错: | 153 | 第一段接口完成入参校验,出现以下场景时报错: |
| 154 | 154 | ||
| 155 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 155 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 156 | <col style="width: 283px"> | 156 | <col style="width: 283px"> |
| 157 | <col style="width: 120px"> | 157 | <col style="width: 120px"> |
| 158 | <col style="width: 747px"> | 158 | <col style="width: 747px"> |
| @@ -190,7 +190,7 @@ aclnnStatus aclnnInplaceAdds( | |||
| 190 | 190 | ||
| 191 | - **参数说明:** | 191 | - **参数说明:** |
| 192 | 192 | ||
| 193 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 193 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 194 | <col style="width: 168px"> | 194 | <col style="width: 168px"> |
| 195 | <col style="width: 128px"> | 195 | <col style="width: 128px"> |
| 196 | <col style="width: 854px"> | 196 | <col style="width: 854px"> |
| @@ -22,7 +22,7 @@ | |||
| 22 | 给定输入张量x,最后一维的长度为2d,函数AddLora进行以下计算: | 22 | 给定输入张量x,最后一维的长度为2d,函数AddLora进行以下计算: |
| 23 | 23 | ||
| 24 | 1. 将x根据indices中的索引进行重排,对应同一组权重的x排列在一起。 | 24 | 1. 将x根据indices中的索引进行重排,对应同一组权重的x排列在一起。 |
| 25 | - | 25 | + |
| 26 | 2. 循环每个Lora分组,分别拿相应的x和weightA做矩阵乘: | 26 | 2. 循环每个Lora分组,分别拿相应的x和weightA做矩阵乘: |
| 27 | 27 | ||
| 28 | $$ | 28 | $$ |
| @@ -41,7 +41,7 @@ | |||
| 41 | 41 | ||
| 42 | ## 参数说明 | 42 | ## 参数说明 |
| 43 | 43 | ||
| 44 | -<table style="undefined;table-layout: fixed; width: 855px"><colgroup> | 44 | +<table style="table-layout: fixed; width: 855px"><colgroup> |
| 45 | <col style="width: 164px"> | 45 | <col style="width: 164px"> |
| 46 | <col style="width: 138px"> | 46 | <col style="width: 138px"> |
| 47 | <col style="width: 300px"> | 47 | <col style="width: 300px"> |
| @@ -83,7 +83,7 @@ aclnnStatus aclnnAddLora( | |||
| 83 | 83 | ||
| 84 | - **参数说明:** | 84 | - **参数说明:** |
| 85 | 85 | ||
| 86 | - <table style="undefined;table-layout: fixed; width: 1420px"><colgroup> | 86 | + <table style="table-layout: fixed; width: 1420px"><colgroup> |
| 87 | <col style="width: 271px"> | 87 | <col style="width: 271px"> |
| 88 | <col style="width: 115px"> | 88 | <col style="width: 115px"> |
| 89 | <col style="width: 220px"> | 89 | <col style="width: 220px"> |
| @@ -238,7 +238,7 @@ aclnnStatus aclnnAddLora( | |||
| 238 | 238 | ||
| 239 | 第一段接口会完成入参校验,出现以下场景时报错: | 239 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 240 | 240 | ||
| 241 | - <table style="undefined;table-layout: fixed; width: 1048px"><colgroup> | 241 | + <table style="table-layout: fixed; width: 1048px"><colgroup> |
| 242 | <col style="width: 319px"> | 242 | <col style="width: 319px"> |
| 243 | <col style="width: 108px"> | 243 | <col style="width: 108px"> |
| 244 | <col style="width: 621px"> | 244 | <col style="width: 621px"> |
| @@ -275,7 +275,7 @@ aclnnStatus aclnnAddLora( | |||
| 275 | 275 | ||
| 276 | - **参数说明:** | 276 | - **参数说明:** |
| 277 | 277 | ||
| 278 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 278 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 279 | <col style="width: 173px"> | 279 | <col style="width: 173px"> |
| 280 | <col style="width: 112px"> | 280 | <col style="width: 112px"> |
| 281 | <col style="width: 668px"> | 281 | <col style="width: 668px"> |
| @@ -356,7 +356,7 @@ void PrintOutResult(std::vector<int64_t> &shape, void** deviceAddr) { | |||
| 356 | *deviceAddr, size * sizeof(resultData[0]), ACL_MEMCPY_DEVICE_TO_HOST); | 356 | *deviceAddr, size * sizeof(resultData[0]), ACL_MEMCPY_DEVICE_TO_HOST); |
| 357 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); | 357 | CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("copy result from device to host failed. ERROR: %d\n", ret); return); |
| 358 | for (int64_t i = 0; i < size; i++) { | 358 | for (int64_t i = 0; i < size; i++) { |
| 359 | - LOG_PRINT("mean result[%ld] is: %f\n", i, resultData[i]); | 359 | + LOG_PRINT("result[%ld] is: %f\n", i, resultData[i]); |
| 360 | } | 360 | } |
| 361 | } | 361 | } |
| 362 | 362 | ||
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | ## 参数说明 | 24 | ## 参数说明 |
| 25 | 25 | ||
| 26 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 26 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 27 | <col style="width: 100px"> | 27 | <col style="width: 100px"> |
| 28 | <col style="width: 150px"> | 28 | <col style="width: 150px"> |
| 29 | <col style="width: 190px"> | 29 | <col style="width: 190px"> |
| @@ -55,7 +55,7 @@ aclnnStatus aclnnAddN( | |||
| 55 | 55 | ||
| 56 | - **参数说明** | 56 | - **参数说明** |
| 57 | 57 | ||
| 58 | - <table style="undefined;table-layout: fixed; width: 1500px"><colgroup> | 58 | + <table style="table-layout: fixed; width: 1500px"><colgroup> |
| 59 | <col style="width: 180px"> | 59 | <col style="width: 180px"> |
| 60 | <col style="width: 120px"> | 60 | <col style="width: 120px"> |
| 61 | <col style="width: 300px"> | 61 | <col style="width: 300px"> |
| @@ -125,7 +125,7 @@ aclnnStatus aclnnAddN( | |||
| 125 | 125 | ||
| 126 | 第一段接口完成入参校验,出现以下场景时报错: | 126 | 第一段接口完成入参校验,出现以下场景时报错: |
| 127 | 127 | ||
| 128 | - <table style="undefined;table-layout: fixed; width: 1000px"><colgroup> | 128 | + <table style="table-layout: fixed; width: 1000px"><colgroup> |
| 129 | <col style="width: 300px"> | 129 | <col style="width: 300px"> |
| 130 | <col style="width: 150px"> | 130 | <col style="width: 150px"> |
| 131 | <col style="width: 550px"> | 131 | <col style="width: 550px"> |
| @@ -166,7 +166,7 @@ aclnnStatus aclnnAddN( | |||
| 166 | 166 | ||
| 167 | - **参数说明** | 167 | - **参数说明** |
| 168 | 168 | ||
| 169 | - <table style="undefined;table-layout: fixed; width: 1000px"><colgroup> | 169 | + <table style="table-layout: fixed; width: 1000px"><colgroup> |
| 170 | <col style="width: 180px"> | 170 | <col style="width: 180px"> |
| 171 | <col style="width: 120px"> | 171 | <col style="width: 120px"> |
| 172 | <col style="width: 700px"> | 172 | <col style="width: 700px"> |
| @@ -28,7 +28,7 @@ x1 shape (3, 1), x2 shape (1, 4) -> y shape (3, 4) | |||
| 28 | 28 | ||
| 29 | ## 参数说明 | 29 | ## 参数说明 |
| 30 | 30 | ||
| 31 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 31 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 32 | <col style="width: 100px"> | 32 | <col style="width: 100px"> |
| 33 | <col style="width: 150px"> | 33 | <col style="width: 150px"> |
| 34 | <col style="width: 280px"> | 34 | <col style="width: 280px"> |
| @@ -21,7 +21,7 @@ $out = self + value × (input_1 / input_2)$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -82,7 +82,7 @@ | |||
| 82 | 82 | ||
| 83 | - **参数说明:** | 83 | - **参数说明:** |
| 84 | 84 | ||
| 85 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 85 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 86 | <col style="width: 150px"> | 86 | <col style="width: 150px"> |
| 87 | <col style="width: 121px"> | 87 | <col style="width: 121px"> |
| 88 | <col style="width: 206px"> | 88 | <col style="width: 206px"> |
| @@ -207,7 +207,7 @@ | |||
| 207 | 207 | ||
| 208 | 第一段接口完成入参校验,出现如下场景时报错: | 208 | 第一段接口完成入参校验,出现如下场景时报错: |
| 209 | 209 | ||
| 210 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 210 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 211 | <col style="width: 267px"> | 211 | <col style="width: 267px"> |
| 212 | <col style="width: 124px"> | 212 | <col style="width: 124px"> |
| 213 | <col style="width: 775px"> | 213 | <col style="width: 775px"> |
| @@ -251,7 +251,7 @@ | |||
| 251 | 251 | ||
| 252 | - **参数说明:** | 252 | - **参数说明:** |
| 253 | 253 | ||
| 254 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 254 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 255 | <col style="width: 173px"> | 255 | <col style="width: 173px"> |
| 256 | <col style="width: 133px"> | 256 | <col style="width: 133px"> |
| 257 | <col style="width: 860px"> | 257 | <col style="width: 860px"> |
| @@ -294,7 +294,7 @@ | |||
| 294 | 294 | ||
| 295 | - **参数说明:** | 295 | - **参数说明:** |
| 296 | 296 | ||
| 297 | - <table style="undefined;table-layout: fixed; width: 1548px"><colgroup> | 297 | + <table style="table-layout: fixed; width: 1548px"><colgroup> |
| 298 | <col style="width: 150px"> | 298 | <col style="width: 150px"> |
| 299 | <col style="width: 121px"> | 299 | <col style="width: 121px"> |
| 300 | <col style="width: 206px"> | 300 | <col style="width: 206px"> |
| @@ -406,7 +406,7 @@ | |||
| 406 | 406 | ||
| 407 | 第一段接口完成入参校验,出现如下场景时报错: | 407 | 第一段接口完成入参校验,出现如下场景时报错: |
| 408 | 408 | ||
| 409 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 409 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 410 | <col style="width: 267px"> | 410 | <col style="width: 267px"> |
| 411 | <col style="width: 124px"> | 411 | <col style="width: 124px"> |
| 412 | <col style="width: 775px"> | 412 | <col style="width: 775px"> |
| @@ -450,7 +450,7 @@ | |||
| 450 | 450 | ||
| 451 | - **参数说明:** | 451 | - **参数说明:** |
| 452 | 452 | ||
| 453 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 453 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 454 | <col style="width: 173px"> | 454 | <col style="width: 173px"> |
| 455 | <col style="width: 133px"> | 455 | <col style="width: 133px"> |
| 456 | <col style="width: 860px"> | 456 | <col style="width: 860px"> |
| @@ -21,7 +21,7 @@ $out = self + value × input_1 × input_2$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -82,7 +82,7 @@ | |||
| 82 | 82 | ||
| 83 | - **参数说明:** | 83 | - **参数说明:** |
| 84 | 84 | ||
| 85 | - <table style="undefined;table-layout: fixed; width: 1547px"><colgroup> | 85 | + <table style="table-layout: fixed; width: 1547px"><colgroup> |
| 86 | <col style="width: 150px"> | 86 | <col style="width: 150px"> |
| 87 | <col style="width: 121px"> | 87 | <col style="width: 121px"> |
| 88 | <col style="width: 206px"> | 88 | <col style="width: 206px"> |
| @@ -207,7 +207,7 @@ | |||
| 207 | 207 | ||
| 208 | 第一段接口完成入参校验,出现如下场景时报错: | 208 | 第一段接口完成入参校验,出现如下场景时报错: |
| 209 | 209 | ||
| 210 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 210 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 211 | <col style="width: 267px"> | 211 | <col style="width: 267px"> |
| 212 | <col style="width: 124px"> | 212 | <col style="width: 124px"> |
| 213 | <col style="width: 775px"> | 213 | <col style="width: 775px"> |
| @@ -254,7 +254,7 @@ | |||
| 254 | 254 | ||
| 255 | - **参数说明:** | 255 | - **参数说明:** |
| 256 | 256 | ||
| 257 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 257 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 258 | <col style="width: 173px"> | 258 | <col style="width: 173px"> |
| 259 | <col style="width: 133px"> | 259 | <col style="width: 133px"> |
| 260 | <col style="width: 860px"> | 260 | <col style="width: 860px"> |
| @@ -297,7 +297,7 @@ | |||
| 297 | 297 | ||
| 298 | - **参数说明:** | 298 | - **参数说明:** |
| 299 | 299 | ||
| 300 | - <table style="undefined;table-layout: fixed; width: 1546px"><colgroup> | 300 | + <table style="table-layout: fixed; width: 1546px"><colgroup> |
| 301 | <col style="width: 150px"> | 301 | <col style="width: 150px"> |
| 302 | <col style="width: 121px"> | 302 | <col style="width: 121px"> |
| 303 | <col style="width: 206px"> | 303 | <col style="width: 206px"> |
| @@ -407,7 +407,7 @@ | |||
| 407 | 407 | ||
| 408 | 第一段接口完成入参校验,出现如下场景时报错: | 408 | 第一段接口完成入参校验,出现如下场景时报错: |
| 409 | 409 | ||
| 410 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 410 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 411 | <col style="width: 267px"> | 411 | <col style="width: 267px"> |
| 412 | <col style="width: 124px"> | 412 | <col style="width: 124px"> |
| 413 | <col style="width: 775px"> | 413 | <col style="width: 775px"> |
| @@ -454,7 +454,7 @@ | |||
| 454 | 454 | ||
| 455 | - **参数说明:** | 455 | - **参数说明:** |
| 456 | 456 | ||
| 457 | - <table style="undefined;table-layout: fixed; width: 1166px"><colgroup> | 457 | + <table style="table-layout: fixed; width: 1166px"><colgroup> |
| 458 | <col style="width: 173px"> | 458 | <col style="width: 173px"> |
| 459 | <col style="width: 133px"> | 459 | <col style="width: 133px"> |
| 460 | <col style="width: 860px"> | 460 | <col style="width: 860px"> |
| @@ -22,7 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | ## 参数说明 | 23 | ## 参数说明 |
| 24 | 24 | ||
| 25 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 25 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 26 | <col style="width: 100px"> | 26 | <col style="width: 100px"> |
| 27 | <col style="width: 150px"> | 27 | <col style="width: 150px"> |
| 28 | <col style="width: 280px"> | 28 | <col style="width: 280px"> |
| @@ -82,7 +82,7 @@ aclnnStatus aclnnInplaceAddr( | |||
| 82 | 82 | ||
| 83 | - **参数说明:** | 83 | - **参数说明:** |
| 84 | 84 | ||
| 85 | - <table style="undefined;table-layout: fixed; width: 1570px"><colgroup> | 85 | + <table style="table-layout: fixed; width: 1570px"><colgroup> |
| 86 | <col style="width: 220px"> | 86 | <col style="width: 220px"> |
| 87 | <col style="width: 120px"> | 87 | <col style="width: 120px"> |
| 88 | <col style="width: 350px"> | 88 | <col style="width: 350px"> |
| @@ -196,7 +196,7 @@ aclnnStatus aclnnInplaceAddr( | |||
| 196 | 196 | ||
| 197 | 第一段接口完成入参校验,出现以下场景时报错: | 197 | 第一段接口完成入参校验,出现以下场景时报错: |
| 198 | 198 | ||
| 199 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 199 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 200 | <col style="width: 288px"> | 200 | <col style="width: 288px"> |
| 201 | <col style="width: 114px"> | 201 | <col style="width: 114px"> |
| 202 | <col style="width: 747px"> | 202 | <col style="width: 747px"> |
| @@ -237,7 +237,7 @@ aclnnStatus aclnnInplaceAddr( | |||
| 237 | 237 | ||
| 238 | - **参数说明:** | 238 | - **参数说明:** |
| 239 | 239 | ||
| 240 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 240 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 241 | <col style="width: 184px"> | 241 | <col style="width: 184px"> |
| 242 | <col style="width: 134px"> | 242 | <col style="width: 134px"> |
| 243 | <col style="width: 833px"> | 243 | <col style="width: 833px"> |
| @@ -280,7 +280,7 @@ aclnnStatus aclnnInplaceAddr( | |||
| 280 | 280 | ||
| 281 | - **参数说明:** | 281 | - **参数说明:** |
| 282 | 282 | ||
| 283 | - <table style="undefined;table-layout: fixed; width: 1570px"><colgroup> | 283 | + <table style="table-layout: fixed; width: 1570px"><colgroup> |
| 284 | <col style="width: 220px"> | 284 | <col style="width: 220px"> |
| 285 | <col style="width: 120px"> | 285 | <col style="width: 120px"> |
| 286 | <col style="width: 350px"> | 286 | <col style="width: 350px"> |
| @@ -384,7 +384,7 @@ aclnnStatus aclnnInplaceAddr( | |||
| 384 | 384 | ||
| 385 | 第一段接口完成入参校验,出现以下场景时报错: | 385 | 第一段接口完成入参校验,出现以下场景时报错: |
| 386 | 386 | ||
| 387 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 387 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 388 | <col style="width: 288px"> | 388 | <col style="width: 288px"> |
| 389 | <col style="width: 114px"> | 389 | <col style="width: 114px"> |
| 390 | <col style="width: 747px"> | 390 | <col style="width: 747px"> |
| @@ -425,7 +425,7 @@ aclnnStatus aclnnInplaceAddr( | |||
| 425 | 425 | ||
| 426 | - **参数说明:** | 426 | - **参数说明:** |
| 427 | 427 | ||
| 428 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 428 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 429 | <col style="width: 184px"> | 429 | <col style="width: 184px"> |
| 430 | <col style="width: 134px"> | 430 | <col style="width: 134px"> |
| 431 | <col style="width: 833px"> | 431 | <col style="width: 833px"> |
| @@ -23,7 +23,7 @@ $$ | |||
| 23 | 23 | ||
| 24 | ## 参数说明 | 24 | ## 参数说明 |
| 25 | 25 | ||
| 26 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 26 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 27 | <col style="width: 100px"> | 27 | <col style="width: 100px"> |
| 28 | <col style="width: 150px"> | 28 | <col style="width: 150px"> |
| 29 | <col style="width: 280px"> | 29 | <col style="width: 280px"> |
| @@ -51,7 +51,7 @@ aclnnStatus aclnnAffineGrid( | |||
| 51 | 51 | ||
| 52 | - **参数说明:** | 52 | - **参数说明:** |
| 53 | 53 | ||
| 54 | - <table style="undefined;table-layout: fixed; width: 1545px"><colgroup> | 54 | + <table style="table-layout: fixed; width: 1545px"><colgroup> |
| 55 | <col style="width: 248px"> | 55 | <col style="width: 248px"> |
| 56 | <col style="width: 128px"> | 56 | <col style="width: 128px"> |
| 57 | <col style="width: 307px"> | 57 | <col style="width: 307px"> |
| @@ -145,7 +145,7 @@ aclnnStatus aclnnAffineGrid( | |||
| 145 | 145 | ||
| 146 | 第一段接口完成入参校验,出现以下场景时报错: | 146 | 第一段接口完成入参校验,出现以下场景时报错: |
| 147 | 147 | ||
| 148 | - <table style="undefined;table-layout: fixed; width: 1147px"><colgroup> | 148 | + <table style="table-layout: fixed; width: 1147px"><colgroup> |
| 149 | <col style="width: 302px"> | 149 | <col style="width: 302px"> |
| 150 | <col style="width: 135px"> | 150 | <col style="width: 135px"> |
| 151 | <col style="width: 710px"> | 151 | <col style="width: 710px"> |
| @@ -189,7 +189,7 @@ aclnnStatus aclnnAffineGrid( | |||
| 189 | 189 | ||
| 190 | - **参数说明:** | 190 | - **参数说明:** |
| 191 | 191 | ||
| 192 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 192 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 193 | <col style="width: 184px"> | 193 | <col style="width: 184px"> |
| 194 | <col style="width: 134px"> | 194 | <col style="width: 134px"> |
| 195 | <col style="width: 833px"> | 195 | <col style="width: 833px"> |
| @@ -43,7 +43,7 @@ | |||
| 43 | 43 | ||
| 44 | ## 参数说明 | 44 | ## 参数说明 |
| 45 | 45 | ||
| 46 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 46 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 47 | <col style="width: 170px"> | 47 | <col style="width: 170px"> |
| 48 | <col style="width: 150px"> | 48 | <col style="width: 150px"> |
| 49 | <col style="width: 280px"> | 49 | <col style="width: 280px"> |
| @@ -80,7 +80,7 @@ aclnnStatus aclnnAmpUpdateScale( | |||
| 80 | 80 | ||
| 81 | - **参数说明:** | 81 | - **参数说明:** |
| 82 | 82 | ||
| 83 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 83 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 84 | <col style="width: 220px"> | 84 | <col style="width: 220px"> |
| 85 | <col style="width: 120px"> | 85 | <col style="width: 120px"> |
| 86 | <col style="width: 250px"> | 86 | <col style="width: 250px"> |
| @@ -210,7 +210,7 @@ aclnnStatus aclnnAmpUpdateScale( | |||
| 210 | 210 | ||
| 211 | 第一段接口完成入参校验,出现以下场景时报错: | 211 | 第一段接口完成入参校验,出现以下场景时报错: |
| 212 | 212 | ||
| 213 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 213 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 214 | <col style="width: 300px"> | 214 | <col style="width: 300px"> |
| 215 | <col style="width: 134px"> | 215 | <col style="width: 134px"> |
| 216 | <col style="width: 716px"> | 216 | <col style="width: 716px"> |
| @@ -256,7 +256,7 @@ aclnnStatus aclnnAmpUpdateScale( | |||
| 256 | 256 | ||
| 257 | - **参数说明:** | 257 | - **参数说明:** |
| 258 | 258 | ||
| 259 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 259 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 260 | <col style="width: 167px"> | 260 | <col style="width: 167px"> |
| 261 | <col style="width: 134px"> | 261 | <col style="width: 134px"> |
| 262 | <col style="width: 848px"> | 262 | <col style="width: 848px"> |
| @@ -25,7 +25,7 @@ $$ | |||
| 25 | 25 | ||
| 26 | ## 参数说明 | 26 | ## 参数说明 |
| 27 | 27 | ||
| 28 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 28 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 29 | <col style="width: 100px"> | 29 | <col style="width: 100px"> |
| 30 | <col style="width: 150px"> | 30 | <col style="width: 150px"> |
| 31 | <col style="width: 280px"> | 31 | <col style="width: 280px"> |
| @@ -55,7 +55,7 @@ aclnnStatus aclnnAngleV2( | |||
| 55 | 55 | ||
| 56 | - **参数说明:** | 56 | - **参数说明:** |
| 57 | 57 | ||
| 58 | - <table style="undefined;table-layout: fixed; width: 1523px"><colgroup> | 58 | + <table style="table-layout: fixed; width: 1523px"><colgroup> |
| 59 | <col style="width: 146px"> | 59 | <col style="width: 146px"> |
| 60 | <col style="width: 120px"> | 60 | <col style="width: 120px"> |
| 61 | <col style="width: 301px"> | 61 | <col style="width: 301px"> |
| @@ -126,7 +126,7 @@ aclnnStatus aclnnAngleV2( | |||
| 126 | 126 | ||
| 127 | 第一段接口会完成入参校验,出现以下场景时报错: | 127 | 第一段接口会完成入参校验,出现以下场景时报错: |
| 128 | 128 | ||
| 129 | - <table style="undefined;table-layout: fixed;width: 1155px"><colgroup> | 129 | + <table style="table-layout: fixed;width: 1155px"><colgroup> |
| 130 | <col style="width: 319px"> | 130 | <col style="width: 319px"> |
| 131 | <col style="width: 144px"> | 131 | <col style="width: 144px"> |
| 132 | <col style="width: 671px"> | 132 | <col style="width: 671px"> |
| @@ -160,7 +160,7 @@ aclnnStatus aclnnAngleV2( | |||
| 160 | ## aclnnAngleV2 | 160 | ## aclnnAngleV2 |
| 161 | 161 | ||
| 162 | - **参数说明:** | 162 | - **参数说明:** |
| 163 | - <table style="undefined;table-layout: fixed; width: 953px"><colgroup> | 163 | + <table style="table-layout: fixed; width: 953px"><colgroup> |
| 164 | <col style="width: 173px"> | 164 | <col style="width: 173px"> |
| 165 | <col style="width: 112px"> | 165 | <col style="width: 112px"> |
| 166 | <col style="width: 668px"> | 166 | <col style="width: 668px"> |
| @@ -41,7 +41,7 @@ aclnnStatus aclnnArgMax( | |||
| 41 | 41 | ||
| 42 | - **参数说明**: | 42 | - **参数说明**: |
| 43 | 43 | ||
| 44 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 44 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 45 | <col style="width: 154px"> | 45 | <col style="width: 154px"> |
| 46 | <col style="width: 125px"> | 46 | <col style="width: 125px"> |
| 47 | <col style="width: 294px"> | 47 | <col style="width: 294px"> |
| @@ -134,7 +134,7 @@ aclnnStatus aclnnArgMax( | |||
| 134 | 134 | ||
| 135 | 第一段接口完成入参校验,出现以下场景时报错: | 135 | 第一段接口完成入参校验,出现以下场景时报错: |
| 136 | 136 | ||
| 137 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 137 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 138 | <col style="width: 288px"> | 138 | <col style="width: 288px"> |
| 139 | <col style="width: 114px"> | 139 | <col style="width: 114px"> |
| 140 | <col style="width: 747px"> | 140 | <col style="width: 747px"> |
| @@ -169,7 +169,7 @@ aclnnStatus aclnnArgMax( | |||
| 169 | 169 | ||
| 170 | - **参数说明**: | 170 | - **参数说明**: |
| 171 | 171 | ||
| 172 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 172 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 173 | <col style="width: 153px"> | 173 | <col style="width: 153px"> |
| 174 | <col style="width: 124px"> | 174 | <col style="width: 124px"> |
| 175 | <col style="width: 872px"> | 175 | <col style="width: 872px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnArgMax( | |||
| 53 | 53 | ||
| 54 | - **参数说明**: | 54 | - **参数说明**: |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1494px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1494px"><colgroup> |
| 57 | <col style="width: 154px"> | 57 | <col style="width: 154px"> |
| 58 | <col style="width: 125px"> | 58 | <col style="width: 125px"> |
| 59 | <col style="width: 294px"> | 59 | <col style="width: 294px"> |
| @@ -148,7 +148,7 @@ aclnnStatus aclnnArgMax( | |||
| 148 | 148 | ||
| 149 | 第一段接口完成入参校验,出现以下场景时报错: | 149 | 第一段接口完成入参校验,出现以下场景时报错: |
| 150 | 150 | ||
| 151 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 151 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 152 | <col style="width: 288px"> | 152 | <col style="width: 288px"> |
| 153 | <col style="width: 114px"> | 153 | <col style="width: 114px"> |
| 154 | <col style="width: 747px"> | 154 | <col style="width: 747px"> |
| @@ -183,7 +183,7 @@ aclnnStatus aclnnArgMax( | |||
| 183 | 183 | ||
| 184 | - **参数说明**: | 184 | - **参数说明**: |
| 185 | 185 | ||
| 186 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 186 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 187 | <col style="width: 153px"> | 187 | <col style="width: 153px"> |
| 188 | <col style="width: 124px"> | 188 | <col style="width: 124px"> |
| 189 | <col style="width: 872px"> | 189 | <col style="width: 872px"> |
| @@ -54,7 +54,7 @@ aclnnStatus aclnnMaxDim( | |||
| 54 | 54 | ||
| 55 | - **参数说明:** | 55 | - **参数说明:** |
| 56 | 56 | ||
| 57 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 57 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 58 | <col style="width: 217px"> | 58 | <col style="width: 217px"> |
| 59 | <col style="width: 125px"> | 59 | <col style="width: 125px"> |
| 60 | <col style="width: 247px"> | 60 | <col style="width: 247px"> |
| @@ -163,7 +163,7 @@ aclnnStatus aclnnMaxDim( | |||
| 163 | 163 | ||
| 164 | 第一段接口完成入参校验,出现如下场景时报错: | 164 | 第一段接口完成入参校验,出现如下场景时报错: |
| 165 | 165 | ||
| 166 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 166 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 167 | <col style="width: 300px"> | 167 | <col style="width: 300px"> |
| 168 | <col style="width: 134px"> | 168 | <col style="width: 134px"> |
| 169 | <col style="width: 716px"> | 169 | <col style="width: 716px"> |
| @@ -198,7 +198,7 @@ aclnnStatus aclnnMaxDim( | |||
| 198 | 198 | ||
| 199 | - **参数说明:** | 199 | - **参数说明:** |
| 200 | 200 | ||
| 201 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 201 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 202 | <col style="width: 184px"> | 202 | <col style="width: 184px"> |
| 203 | <col style="width: 134px"> | 203 | <col style="width: 134px"> |
| 204 | <col style="width: 833px"> | 204 | <col style="width: 833px"> |
| @@ -41,7 +41,7 @@ aclnnStatus aclnnArgMin( | |||
| 41 | 41 | ||
| 42 | - **参数说明**: | 42 | - **参数说明**: |
| 43 | 43 | ||
| 44 | - <table style="undefined;table-layout: fixed; width: 1499px"><colgroup> | 44 | + <table style="table-layout: fixed; width: 1499px"><colgroup> |
| 45 | <col style="width: 165px"> | 45 | <col style="width: 165px"> |
| 46 | <col style="width: 125px"> | 46 | <col style="width: 125px"> |
| 47 | <col style="width: 294px"> | 47 | <col style="width: 294px"> |
| @@ -135,7 +135,7 @@ aclnnStatus aclnnArgMin( | |||
| 135 | 135 | ||
| 136 | 第一段接口完成入参校验,出现以下场景时报错: | 136 | 第一段接口完成入参校验,出现以下场景时报错: |
| 137 | 137 | ||
| 138 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 138 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 139 | <col style="width: 288px"> | 139 | <col style="width: 288px"> |
| 140 | <col style="width: 114px"> | 140 | <col style="width: 114px"> |
| 141 | <col style="width: 747px"> | 141 | <col style="width: 747px"> |
| @@ -173,7 +173,7 @@ aclnnStatus aclnnArgMin( | |||
| 173 | 173 | ||
| 174 | - **参数说明**: | 174 | - **参数说明**: |
| 175 | 175 | ||
| 176 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 176 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 177 | <col style="width: 153px"> | 177 | <col style="width: 153px"> |
| 178 | <col style="width: 124px"> | 178 | <col style="width: 124px"> |
| 179 | <col style="width: 872px"> | 179 | <col style="width: 872px"> |
| @@ -53,7 +53,7 @@ aclnnStatus aclnnArgMin( | |||
| 53 | 53 | ||
| 54 | - **参数说明**: | 54 | - **参数说明**: |
| 55 | 55 | ||
| 56 | - <table style="undefined;table-layout: fixed; width: 1499px"><colgroup> | 56 | + <table style="table-layout: fixed; width: 1499px"><colgroup> |
| 57 | <col style="width: 165px"> | 57 | <col style="width: 165px"> |
| 58 | <col style="width: 125px"> | 58 | <col style="width: 125px"> |
| 59 | <col style="width: 294px"> | 59 | <col style="width: 294px"> |
| @@ -151,7 +151,7 @@ aclnnStatus aclnnArgMin( | |||
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现以下场景时报错: | 152 | 第一段接口完成入参校验,出现以下场景时报错: |
| 153 | 153 | ||
| 154 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 154 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 155 | <col style="width: 288px"> | 155 | <col style="width: 288px"> |
| 156 | <col style="width: 114px"> | 156 | <col style="width: 114px"> |
| 157 | <col style="width: 747px"> | 157 | <col style="width: 747px"> |
| @@ -189,7 +189,7 @@ aclnnStatus aclnnArgMin( | |||
| 189 | 189 | ||
| 190 | - **参数说明**: | 190 | - **参数说明**: |
| 191 | 191 | ||
| 192 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 192 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 193 | <col style="width: 153px"> | 193 | <col style="width: 153px"> |
| 194 | <col style="width: 124px"> | 194 | <col style="width: 124px"> |
| 195 | <col style="width: 872px"> | 195 | <col style="width: 872px"> |
| @@ -64,7 +64,7 @@ aclnnStatus aclnnMinDim( | |||
| 64 | 64 | ||
| 65 | - **参数说明:** | 65 | - **参数说明:** |
| 66 | 66 | ||
| 67 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 67 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 68 | <col style="width: 217px"> | 68 | <col style="width: 217px"> |
| 69 | <col style="width: 125px"> | 69 | <col style="width: 125px"> |
| 70 | <col style="width: 247px"> | 70 | <col style="width: 247px"> |
| @@ -175,7 +175,7 @@ aclnnStatus aclnnMinDim( | |||
| 175 | 175 | ||
| 176 | 第一段接口完成入参校验,出现如下场景时报错: | 176 | 第一段接口完成入参校验,出现如下场景时报错: |
| 177 | 177 | ||
| 178 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 178 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 179 | <col style="width: 300px"> | 179 | <col style="width: 300px"> |
| 180 | <col style="width: 134px"> | 180 | <col style="width: 134px"> |
| 181 | <col style="width: 716px"> | 181 | <col style="width: 716px"> |
| @@ -207,7 +207,7 @@ aclnnStatus aclnnMinDim( | |||
| 207 | 207 | ||
| 208 | - **参数说明:** | 208 | - **参数说明:** |
| 209 | 209 | ||
| 210 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 210 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 211 | <col style="width: 184px"> | 211 | <col style="width: 184px"> |
| 212 | <col style="width: 134px"> | 212 | <col style="width: 134px"> |
| 213 | <col style="width: 833px"> | 213 | <col style="width: 833px"> |
| @@ -75,7 +75,7 @@ aclnnStatus aclnnInplaceAsin( | |||
| 75 | 75 | ||
| 76 | - **参数说明:** | 76 | - **参数说明:** |
| 77 | 77 | ||
| 78 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 78 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 79 | <col style="width: 220px"> | 79 | <col style="width: 220px"> |
| 80 | <col style="width: 120px"> | 80 | <col style="width: 120px"> |
| 81 | <col style="width: 350px"> | 81 | <col style="width: 350px"> |
| @@ -149,7 +149,7 @@ aclnnStatus aclnnInplaceAsin( | |||
| 149 | 149 | ||
| 150 | 第一段接口完成入参校验,出现以下场景时报错: | 150 | 第一段接口完成入参校验,出现以下场景时报错: |
| 151 | 151 | ||
| 152 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 152 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 153 | <col style="width: 288px"> | 153 | <col style="width: 288px"> |
| 154 | <col style="width: 114px"> | 154 | <col style="width: 114px"> |
| 155 | <col style="width: 747px"> | 155 | <col style="width: 747px"> |
| @@ -184,7 +184,7 @@ aclnnStatus aclnnInplaceAsin( | |||
| 184 | 184 | ||
| 185 | - **参数说明:** | 185 | - **参数说明:** |
| 186 | 186 | ||
| 187 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 187 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 188 | <col style="width: 184px"> | 188 | <col style="width: 184px"> |
| 189 | <col style="width: 134px"> | 189 | <col style="width: 134px"> |
| 190 | <col style="width: 833px"> | 190 | <col style="width: 833px"> |
| @@ -227,7 +227,7 @@ aclnnStatus aclnnInplaceAsin( | |||
| 227 | 227 | ||
| 228 | - **参数说明:** | 228 | - **参数说明:** |
| 229 | 229 | ||
| 230 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 230 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 231 | <col style="width: 220px"> | 231 | <col style="width: 220px"> |
| 232 | <col style="width: 120px"> | 232 | <col style="width: 120px"> |
| 233 | <col style="width: 350px"> | 233 | <col style="width: 350px"> |
| @@ -291,7 +291,7 @@ aclnnStatus aclnnInplaceAsin( | |||
| 291 | 291 | ||
| 292 | 第一段接口完成入参校验,出现以下场景时报错: | 292 | 第一段接口完成入参校验,出现以下场景时报错: |
| 293 | 293 | ||
| 294 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 294 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 295 | <col style="width: 288px"> | 295 | <col style="width: 288px"> |
| 296 | <col style="width: 114px"> | 296 | <col style="width: 114px"> |
| 297 | <col style="width: 747px"> | 297 | <col style="width: 747px"> |
| @@ -323,7 +323,7 @@ aclnnStatus aclnnInplaceAsin( | |||
| 323 | 323 | ||
| 324 | - **参数说明:** | 324 | - **参数说明:** |
| 325 | 325 | ||
| 326 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 326 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 327 | <col style="width: 184px"> | 327 | <col style="width: 184px"> |
| 328 | <col style="width: 134px"> | 328 | <col style="width: 134px"> |
| 329 | <col style="width: 833px"> | 329 | <col style="width: 833px"> |
| @@ -75,7 +75,7 @@ aclnnStatus aclnnInplaceAsinh( | |||
| 75 | 75 | ||
| 76 | - **参数说明:** | 76 | - **参数说明:** |
| 77 | 77 | ||
| 78 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 78 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 79 | <col style="width: 220px"> | 79 | <col style="width: 220px"> |
| 80 | <col style="width: 120px"> | 80 | <col style="width: 120px"> |
| 81 | <col style="width: 350px"> | 81 | <col style="width: 350px"> |
| @@ -149,7 +149,7 @@ aclnnStatus aclnnInplaceAsinh( | |||
| 149 | 149 | ||
| 150 | 第一段接口完成入参校验,出现以下场景时报错: | 150 | 第一段接口完成入参校验,出现以下场景时报错: |
| 151 | 151 | ||
| 152 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 152 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 153 | <col style="width: 288px"> | 153 | <col style="width: 288px"> |
| 154 | <col style="width: 114px"> | 154 | <col style="width: 114px"> |
| 155 | <col style="width: 747px"> | 155 | <col style="width: 747px"> |
| @@ -184,7 +184,7 @@ aclnnStatus aclnnInplaceAsinh( | |||
| 184 | 184 | ||
| 185 | - **参数说明:** | 185 | - **参数说明:** |
| 186 | 186 | ||
| 187 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 187 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 188 | <col style="width: 184px"> | 188 | <col style="width: 184px"> |
| 189 | <col style="width: 134px"> | 189 | <col style="width: 134px"> |
| 190 | <col style="width: 833px"> | 190 | <col style="width: 833px"> |
| @@ -227,7 +227,7 @@ aclnnStatus aclnnInplaceAsinh( | |||
| 227 | 227 | ||
| 228 | - **参数说明:** | 228 | - **参数说明:** |
| 229 | 229 | ||
| 230 | - <table style="undefined;table-layout: fixed; width: 1550px"><colgroup> | 230 | + <table style="table-layout: fixed; width: 1550px"><colgroup> |
| 231 | <col style="width: 220px"> | 231 | <col style="width: 220px"> |
| 232 | <col style="width: 120px"> | 232 | <col style="width: 120px"> |
| 233 | <col style="width: 350px"> | 233 | <col style="width: 350px"> |
| @@ -291,7 +291,7 @@ aclnnStatus aclnnInplaceAsinh( | |||
| 291 | 291 | ||
| 292 | 第一段接口完成入参校验,出现以下场景时报错: | 292 | 第一段接口完成入参校验,出现以下场景时报错: |
| 293 | 293 | ||
| 294 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 294 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 295 | <col style="width: 288px"> | 295 | <col style="width: 288px"> |
| 296 | <col style="width: 114px"> | 296 | <col style="width: 114px"> |
| 297 | <col style="width: 747px"> | 297 | <col style="width: 747px"> |
| @@ -323,7 +323,7 @@ aclnnStatus aclnnInplaceAsinh( | |||
| 323 | 323 | ||
| 324 | - **参数说明:** | 324 | - **参数说明:** |
| 325 | 325 | ||
| 326 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 326 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 327 | <col style="width: 184px"> | 327 | <col style="width: 184px"> |
| 328 | <col style="width: 134px"> | 328 | <col style="width: 134px"> |
| 329 | <col style="width: 833px"> | 329 | <col style="width: 833px"> |
| @@ -21,7 +21,7 @@ $$out_i = ref_i + value_i$$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -21,7 +21,7 @@ $$out_i = var_i - value_i$$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 280px"> | 27 | <col style="width: 280px"> |
| @@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | ## 参数说明 | 24 | ## 参数说明 |
| 25 | 25 | ||
| 26 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 26 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 27 | <col style="width: 100px"> | 27 | <col style="width: 100px"> |
| 28 | <col style="width: 150px"> | 28 | <col style="width: 150px"> |
| 29 | <col style="width: 190px"> | 29 | <col style="width: 190px"> |
| @@ -75,7 +75,7 @@ aclnnStatus aclnnInplaceAtan( | |||
| 75 | 75 | ||
| 76 | - **参数说明**: | 76 | - **参数说明**: |
| 77 | 77 | ||
| 78 | - <table style="undefined;table-layout: fixed; width: 1551px"><colgroup> | 78 | + <table style="table-layout: fixed; width: 1551px"><colgroup> |
| 79 | <col style="width: 239px"> | 79 | <col style="width: 239px"> |
| 80 | <col style="width: 127px"> | 80 | <col style="width: 127px"> |
| 81 | <col style="width: 238px"> | 81 | <col style="width: 238px"> |
| @@ -152,7 +152,7 @@ aclnnStatus aclnnInplaceAtan( | |||
| 152 | 152 | ||
| 153 | 第一段接口完成入参校验,出现以下场景时报错: | 153 | 第一段接口完成入参校验,出现以下场景时报错: |
| 154 | 154 | ||
| 155 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 155 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 156 | <col style="width: 291px"> | 156 | <col style="width: 291px"> |
| 157 | <col style="width: 135px"> | 157 | <col style="width: 135px"> |
| 158 | <col style="width: 724px"> | 158 | <col style="width: 724px"> |
| @@ -187,7 +187,7 @@ aclnnStatus aclnnInplaceAtan( | |||
| 187 | 187 | ||
| 188 | - **参数说明**: | 188 | - **参数说明**: |
| 189 | 189 | ||
| 190 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 190 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 191 | <col style="width: 184px"> | 191 | <col style="width: 184px"> |
| 192 | <col style="width: 134px"> | 192 | <col style="width: 134px"> |
| 193 | <col style="width: 833px"> | 193 | <col style="width: 833px"> |
| @@ -230,7 +230,7 @@ aclnnStatus aclnnInplaceAtan( | |||
| 230 | 230 | ||
| 231 | - **参数说明**: | 231 | - **参数说明**: |
| 232 | 232 | ||
| 233 | - <table style="undefined;table-layout: fixed; width: 1520px"><colgroup> | 233 | + <table style="table-layout: fixed; width: 1520px"><colgroup> |
| 234 | <col style="width: 238px"> | 234 | <col style="width: 238px"> |
| 235 | <col style="width: 127px"> | 235 | <col style="width: 127px"> |
| 236 | <col style="width: 237px"> | 236 | <col style="width: 237px"> |
| @@ -298,7 +298,7 @@ aclnnStatus aclnnInplaceAtan( | |||
| 298 | 298 | ||
| 299 | 第一段接口完成入参校验,出现以下场景时报错: | 299 | 第一段接口完成入参校验,出现以下场景时报错: |
| 300 | 300 | ||
| 301 | - <table style="undefined;table-layout: fixed; width: 1149px"><colgroup> | 301 | + <table style="table-layout: fixed; width: 1149px"><colgroup> |
| 302 | <col style="width: 291px"> | 302 | <col style="width: 291px"> |
| 303 | <col style="width: 135px"> | 303 | <col style="width: 135px"> |
| 304 | <col style="width: 723px"> | 304 | <col style="width: 723px"> |
| @@ -330,7 +330,7 @@ aclnnStatus aclnnInplaceAtan( | |||
| 330 | 330 | ||
| 331 | - **参数说明**: | 331 | - **参数说明**: |
| 332 | 332 | ||
| 333 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 333 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 334 | <col style="width: 184px"> | 334 | <col style="width: 184px"> |
| 335 | <col style="width: 134px"> | 335 | <col style="width: 134px"> |
| 336 | <col style="width: 833px"> | 336 | <col style="width: 833px"> |
| @@ -79,7 +79,7 @@ aclnnStatus aclnnInplaceAtan2( | |||
| 79 | 79 | ||
| 80 | - **参数说明:** | 80 | - **参数说明:** |
| 81 | 81 | ||
| 82 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 82 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 83 | <col style="width: 217px"> | 83 | <col style="width: 217px"> |
| 84 | <col style="width: 125px"> | 84 | <col style="width: 125px"> |
| 85 | <col style="width: 247px"> | 85 | <col style="width: 247px"> |
| @@ -159,7 +159,7 @@ aclnnStatus aclnnInplaceAtan2( | |||
| 159 | 159 | ||
| 160 | 第一段接口完成入参校验,出现如下场景时报错: | 160 | 第一段接口完成入参校验,出现如下场景时报错: |
| 161 | 161 | ||
| 162 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 162 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 163 | <col style="width: 300px"> | 163 | <col style="width: 300px"> |
| 164 | <col style="width: 134px"> | 164 | <col style="width: 134px"> |
| 165 | <col style="width: 716px"> | 165 | <col style="width: 716px"> |
| @@ -197,7 +197,7 @@ aclnnStatus aclnnInplaceAtan2( | |||
| 197 | 197 | ||
| 198 | - **参数说明:** | 198 | - **参数说明:** |
| 199 | 199 | ||
| 200 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 200 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 201 | <col style="width: 184px"> | 201 | <col style="width: 184px"> |
| 202 | <col style="width: 134px"> | 202 | <col style="width: 134px"> |
| 203 | <col style="width: 833px"> | 203 | <col style="width: 833px"> |
| @@ -240,7 +240,7 @@ aclnnStatus aclnnInplaceAtan2( | |||
| 240 | 240 | ||
| 241 | - **参数说明:** | 241 | - **参数说明:** |
| 242 | 242 | ||
| 243 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 243 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 244 | <col style="width: 217px"> | 244 | <col style="width: 217px"> |
| 245 | <col style="width: 125px"> | 245 | <col style="width: 125px"> |
| 246 | <col style="width: 247px"> | 246 | <col style="width: 247px"> |
| @@ -310,7 +310,7 @@ aclnnStatus aclnnInplaceAtan2( | |||
| 310 | 310 | ||
| 311 | 第一段接口完成入参校验,出现如下场景时报错: | 311 | 第一段接口完成入参校验,出现如下场景时报错: |
| 312 | 312 | ||
| 313 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 313 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 314 | <col style="width: 300px"> | 314 | <col style="width: 300px"> |
| 315 | <col style="width: 134px"> | 315 | <col style="width: 134px"> |
| 316 | <col style="width: 716px"> | 316 | <col style="width: 716px"> |
| @@ -345,7 +345,7 @@ aclnnStatus aclnnInplaceAtan2( | |||
| 345 | 345 | ||
| 346 | - **参数说明:** | 346 | - **参数说明:** |
| 347 | 347 | ||
| 348 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 348 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 349 | <col style="width: 184px"> | 349 | <col style="width: 184px"> |
| 350 | <col style="width: 134px"> | 350 | <col style="width: 134px"> |
| 351 | <col style="width: 833px"> | 351 | <col style="width: 833px"> |
| @@ -41,7 +41,7 @@ $$ | |||
| 41 | 41 | ||
| 42 | ## 参数说明 | 42 | ## 参数说明 |
| 43 | 43 | ||
| 44 | -<table style="undefined;table-layout: fixed; width: 980px"><colgroup> | 44 | +<table style="table-layout: fixed; width: 980px"><colgroup> |
| 45 | <col style="width: 100px"> | 45 | <col style="width: 100px"> |
| 46 | <col style="width: 150px"> | 46 | <col style="width: 150px"> |
| 47 | <col style="width: 280px"> | 47 | <col style="width: 280px"> |
| @@ -77,7 +77,7 @@ aclnnStatus aclnnInplaceAtanh( | |||
| 77 | 77 | ||
| 78 | - **参数说明:** | 78 | - **参数说明:** |
| 79 | 79 | ||
| 80 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 80 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 81 | <col style="width: 217px"> | 81 | <col style="width: 217px"> |
| 82 | <col style="width: 125px"> | 82 | <col style="width: 125px"> |
| 83 | <col style="width: 247px"> | 83 | <col style="width: 247px"> |
| @@ -151,7 +151,7 @@ aclnnStatus aclnnInplaceAtanh( | |||
| 151 | 151 | ||
| 152 | 第一段接口完成入参校验,出现如下场景时报错: | 152 | 第一段接口完成入参校验,出现如下场景时报错: |
| 153 | 153 | ||
| 154 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 154 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 155 | <col style="width: 300px"> | 155 | <col style="width: 300px"> |
| 156 | <col style="width: 134px"> | 156 | <col style="width: 134px"> |
| 157 | <col style="width: 716px"> | 157 | <col style="width: 716px"> |
| @@ -186,7 +186,7 @@ aclnnStatus aclnnInplaceAtanh( | |||
| 186 | 186 | ||
| 187 | - **参数说明:** | 187 | - **参数说明:** |
| 188 | 188 | ||
| 189 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 189 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 190 | <col style="width: 184px"> | 190 | <col style="width: 184px"> |
| 191 | <col style="width: 134px"> | 191 | <col style="width: 134px"> |
| 192 | <col style="width: 833px"> | 192 | <col style="width: 833px"> |
| @@ -229,7 +229,7 @@ aclnnStatus aclnnInplaceAtanh( | |||
| 229 | 229 | ||
| 230 | - **参数说明:** | 230 | - **参数说明:** |
| 231 | 231 | ||
| 232 | - <table style="undefined;table-layout: fixed; width: 1555px"><colgroup> | 232 | + <table style="table-layout: fixed; width: 1555px"><colgroup> |
| 233 | <col style="width: 217px"> | 233 | <col style="width: 217px"> |
| 234 | <col style="width: 125px"> | 234 | <col style="width: 125px"> |
| 235 | <col style="width: 247px"> | 235 | <col style="width: 247px"> |
| @@ -293,7 +293,7 @@ aclnnStatus aclnnInplaceAtanh( | |||
| 293 | 293 | ||
| 294 | 第一段接口完成入参校验,出现如下场景时报错: | 294 | 第一段接口完成入参校验,出现如下场景时报错: |
| 295 | 295 | ||
| 296 | - <table style="undefined;table-layout: fixed; width: 1150px"><colgroup> | 296 | + <table style="table-layout: fixed; width: 1150px"><colgroup> |
| 297 | <col style="width: 300px"> | 297 | <col style="width: 300px"> |
| 298 | <col style="width: 134px"> | 298 | <col style="width: 134px"> |
| 299 | <col style="width: 716px"> | 299 | <col style="width: 716px"> |
| @@ -325,7 +325,7 @@ aclnnStatus aclnnInplaceAtanh( | |||
| 325 | 325 | ||
| 326 | - **参数说明:** | 326 | - **参数说明:** |
| 327 | 327 | ||
| 328 | - <table style="undefined;table-layout: fixed; width: 1151px"><colgroup> | 328 | + <table style="table-layout: fixed; width: 1151px"><colgroup> |
| 329 | <col style="width: 184px"> | 329 | <col style="width: 184px"> |
| 330 | <col style="width: 134px"> | 330 | <col style="width: 134px"> |
| 331 | <col style="width: 833px"> | 331 | <col style="width: 833px"> |
| @@ -21,7 +21,7 @@ $out_i=self_i + alpha × other_i$ | |||
| 21 | 21 | ||
| 22 | ## 参数说明 | 22 | ## 参数说明 |
| 23 | 23 | ||
| 24 | -<table style="undefined;table-layout: fixed; width: 820px"><colgroup> | 24 | +<table style="table-layout: fixed; width: 820px"><colgroup> |
| 25 | <col style="width: 100px"> | 25 | <col style="width: 100px"> |
| 26 | <col style="width: 150px"> | 26 | <col style="width: 150px"> |
| 27 | <col style="width: 190px"> | 27 | <col style="width: 190px"> |
| @@ -75,4 +75,4 @@ $out_i=self_i + alpha × other_i$ | |||
| 75 | 75 | ||
| 76 | | 调用方式 | 调用样例 | 说明 | | 76 | | 调用方式 | 调用样例 | 说明 | |
| 77 | |---------|----------------------------------------------------|----------------------------------------------------------------------------------------------| | 77 | |---------|----------------------------------------------------|----------------------------------------------------------------------------------------------| |
| 78 | -| 图模式调用 | [test_geir_axpy](./examples/test_geir_axpy.cpp) | 通过[算子IR](./op_graph/axpy_proto.h)构图方式调用Axpy算子 | 78 | +| 图模式调用 | [test_geir_axpy](./examples/test_geir_axpy.cpp) | 通过[算子IR](./op_graph/axpy_proto.h)构图方式调用Axpy算子 | |