已合并
fix misspelling #4658
east_yang创建于 5月9日
fix misspelling #4658
已合并
共 2 个文件变更+2-2
| @@ -256,7 +256,7 @@ __aicore__ inline void GeGluV2Base<T>::ComputeGeluBase( | |||
| 256 | Mul(tmpBuf, ubx2_fp32, tmpBuf, ub_num); | 256 | Mul(tmpBuf, ubx2_fp32, tmpBuf, ub_num); |
| 257 | Muls(tmpBuf, tmpBuf, beta, ub_num); | 257 | Muls(tmpBuf, tmpBuf, beta, ub_num); |
| 258 | Add(tmpBuf, ubx2_fp32, tmpBuf, ub_num); | 258 | Add(tmpBuf, ubx2_fp32, tmpBuf, ub_num); |
| 259 | - Muls(tmpBuf, tmpBuf, alpha, ub_num); // get tan paramter tmpBuf | 259 | + Muls(tmpBuf, tmpBuf, alpha, ub_num); // get tan parameter tmpBuf |
| 260 | 260 | ||
| 261 | // compute x * 0.5 * (1 + tanh(tmpBuf)) | 261 | // compute x * 0.5 * (1 + tanh(tmpBuf)) |
| 262 | Muls(tmpBuf, tmpBuf, negativeOne, ub_num); | 262 | Muls(tmpBuf, tmpBuf, negativeOne, ub_num); |
| @@ -251,7 +251,7 @@ __aicore__ inline void GeGluV2Base<T>::ComputeGeluBase( | |||
| 251 | Mul(tmpBuf, ubx2_fp32, tmpBuf, ub_num); | 251 | Mul(tmpBuf, ubx2_fp32, tmpBuf, ub_num); |
| 252 | Muls(tmpBuf, tmpBuf, beta, ub_num); | 252 | Muls(tmpBuf, tmpBuf, beta, ub_num); |
| 253 | Add(tmpBuf, ubx2_fp32, tmpBuf, ub_num); | 253 | Add(tmpBuf, ubx2_fp32, tmpBuf, ub_num); |
| 254 | - Muls(tmpBuf, tmpBuf, alpha, ub_num); // get tan paramter tmpBuf | 254 | + Muls(tmpBuf, tmpBuf, alpha, ub_num); // get tan parameter tmpBuf |
| 255 | 255 | ||
| 256 | // compute x * 0.5 * (1 + tanh(tmpBuf)) | 256 | // compute x * 0.5 * (1 + tanh(tmpBuf)) |
| 257 | Muls(tmpBuf, tmpBuf, negativeOne, ub_num); | 257 | Muls(tmpBuf, tmpBuf, negativeOne, ub_num); |