Skip to content

Commit bf40139

Browse files
fix(docs): wrong selu definition (#5489)
DOC Co-authored-by: Jen Person <[email protected]>
1 parent 5f561ea commit bf40139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tfjs-core/src/ops/selu.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {op} from './operation';
2727
/**
2828
* Computes scaled exponential linear element-wise.
2929
*
30-
* `x < 0 ? scale * alpha * (exp(x) - 1) : x`
30+
* `x < 0 ? scale * alpha * (exp(x) - 1) : scale * x`
3131
*
3232
* ```js
3333
* const x = tf.tensor1d([-1, 2, -3, 4]);

0 commit comments

Comments
 (0)