Merged
修改issue问题 #14549
fengying555682Add on 5 days ago
修改issue问题 #14549
Merged
fengying555682Add on 5 days ago
Total: 6 files changed+6-6
@@ -148,6 +148,7 @@ aclnnStatus aclnnGeluQuant(
148 <td>1</td>148 <td>1</td>
149 <td>√</td>149 <td>√</td>
150 </tr>150 </tr>
151+ <tr>
151 <td>inputOffsetOptional(aclTensor*)</td>152 <td>inputOffsetOptional(aclTensor*)</td>
152 <td>输入</td>153 <td>输入</td>
153 <td>算子的可选输入,公式中的inputOffsetOptional。</td>154 <td>算子的可选输入,公式中的inputOffsetOptional。</td>
@@ -156,7 +157,6 @@ aclnnStatus aclnnGeluQuant(
156 <td>ND</td>157 <td>ND</td>
157 <td>1</td>158 <td>1</td>
158 <td>√</td>159 <td>√</td>
159- <tr>
160 </tr>160 </tr>
161 <tr>161 <tr>
162 <td>approximate(char*)</td>162 <td>approximate(char*)</td>
@@ -150,6 +150,7 @@ aclnnStatus aclnnGeluQuant(
150 <td>1</td>150 <td>1</td>
151 <td>√</td>151 <td>√</td>
152 </tr>152 </tr>
153+ <tr>
153 <td>inputOffsetOptional (aclTensor*)</td>154 <td>inputOffsetOptional (aclTensor*)</td>
154 <td>Input</td>155 <td>Input</td>
155 <td>Optional input of the operator, which is inputOffsetOptional in the formula.</td>156 <td>Optional input of the operator, which is inputOffsetOptional in the formula.</td>
@@ -158,7 +159,6 @@ aclnnStatus aclnnGeluQuant(
158 <td>ND</td>159 <td>ND</td>
159 <td>1</td>160 <td>1</td>
160 <td>√</td>161 <td>√</td>
161- <tr>
162 </tr>162 </tr>
163 <tr>163 <tr>
164 <td>approximate (char*)</td>164 <td>approximate (char*)</td>
@@ -32,7 +32,7 @@
32$$32$$
33dx_i=33dx_i=
34\begin{cases}34\begin{cases}
35-NaN, & \text{if } x < \text0 \text{ or } x > 1 ,eps <0 \\35+NaN, & \text{if } x < \text{0} \text{ or } x > 1 ,eps <0 \\
360, & \text{if } x < \text{eps} \text{ or } x > 1 - \text{eps},eps \geq 0 \\360, & \text{if } x < \text{eps} \text{ or } x > 1 - \text{eps},eps \geq 0 \\
37\frac{dy_i}{x_i \cdot (1 - x_i)}, & \text{if } \text{eps} \leq x_i \leq 1 - \text{eps} \\37\frac{dy_i}{x_i \cdot (1 - x_i)}, & \text{if } \text{eps} \leq x_i \leq 1 - \text{eps} \\
38\end{cases}38\end{cases}
@@ -34,7 +34,7 @@
34$$34$$
35dx_i=35dx_i=
36\begin{cases}36\begin{cases}
37-NaN, & \text{if } x < \text0 \text{ or } x > 1 ,eps <0 \\37+NaN, & \text{if } x < \text{0} \text{ or } x > 1 ,eps <0 \\
380, & \text{if } x < \text{eps} \text{ or } x > 1 - \text{eps},eps \geq 0 \\380, & \text{if } x < \text{eps} \text{ or } x > 1 - \text{eps},eps \geq 0 \\
39\frac{dy_i}{x_i \cdot (1 - x_i)}, & \text{if } \text{eps} \leq x_i \leq 1 - \text{eps} \\39\frac{dy_i}{x_i \cdot (1 - x_i)}, & \text{if } \text{eps} \leq x_i \leq 1 - \text{eps} \\
40\end{cases}40\end{cases}
@@ -495,7 +495,7 @@ int main() {
495 PrintOutResult(inputShape, &input4DeviceAddr);495 PrintOutResult(inputShape, &input4DeviceAddr);
496 PrintOutResult(inputShape, &input5DeviceAddr);496 PrintOutResult(inputShape, &input5DeviceAddr);
497 497 
498- // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改498+ // 6. 释放aclTensor,需要根据具体API的接口定义修改
499 aclDestroyTensor(input1);499 aclDestroyTensor(input1);
500 aclDestroyTensor(input2);500 aclDestroyTensor(input2);
501 aclDestroyTensor(input3);501 aclDestroyTensor(input3);
@@ -470,7 +470,7 @@ int main() {
470 PrintOutResult(inputShape, &input4DeviceAddr);470 PrintOutResult(inputShape, &input4DeviceAddr);
471 PrintOutResult(inputShape, &input5DeviceAddr);471 PrintOutResult(inputShape, &input5DeviceAddr);
472 472 
473- // 6. Release aclTensor and aclTensor. Modify it based on the actual API definition.473+ // 6. Release aclTensor. Modify it based on the actual API definition.
474 aclDestroyTensor(input1);474 aclDestroyTensor(input1);
475 aclDestroyTensor(input2);475 aclDestroyTensor(input2);
476 aclDestroyTensor(input3);476 aclDestroyTensor(input3);