Skip to content

Commit 6cbf6ba

Browse files
committed
address ningxin's comments
1 parent c94fcd9 commit 6cbf6ba

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

index.bs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2819,7 +2819,7 @@ partial interface MLGraphBuilder {
28192819
</div>
28202820

28212821
### gelu ### {#api-mlgraphbuilder-gelu-method}
2822-
Compute the <a href="https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#Gaussian-error_linear_unit_(GELU)">gaussian error linear unit activation function</a> of the input tensor. The calculation follows the expression `0.5 * x * (1.0 + erf(x / sqrt(2)))`.
2822+
Compute the <a href="https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#Gaussian-error_linear_unit_(GELU)">gaussian error linear unit function</a> (GELU) of the input tensor. The calculation follows the expression `0.5 * x * (1 + erf(x / sqrt(2)))`.
28232823

28242824
<script type=idl>
28252825
partial interface MLGraphBuilder {
@@ -2844,11 +2844,7 @@ partial interface MLGraphBuilder {
28442844
builder.erf(
28452845
builder.div(
28462846
x,
2847-
builder.sqrt(builder.constant(2))
2848-
)
2849-
)
2850-
)
2851-
)
2847+
builder.sqrt(builder.constant(2))))));
28522848
</pre>
28532849
</details>
28542850
</div>

0 commit comments

Comments
 (0)