Skip to content

Commit bb7d189

Browse files
fix readme silu
1 parent b0f284a commit bb7d189

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@
1919

2020
### 1. 算子:SiLU函数(10分)
2121

22-
请在`src/operators.rs`中实现SiLU函数,其公式为:
22+
请在`src/operators.rs`中实现SiLU算子,其公式为:
2323

2424
$$
25-
y=sigmoid(y) × y × x
25+
y=silu(y) × x
2626
$$
2727

2828
其中
2929

30+
$$
31+
silu(x) = sigmoid(x) × x
32+
$$
3033
$$
3134
sigmoid(x) = \frac{1}{1 + e^{-x}}
3235
$$

0 commit comments

Comments
 (0)