UNPKG
@timebutt/face-api.js
Version:
latest (0.23.2)
0.23.2
0.23.1
0.23.0
JavaScript API for face detection and face recognition in the browser with tensorflow.js
@timebutt/face-api.js
/
build
/
commonjs
/
mtcnn
/
prelu.js
7 lines
•
233 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
*
as
tf
from
'@tensorflow/tfjs-core'
;
export
function
prelu
(
x, alpha
) {
return
tf.
tidy
(
function
(
) {
return
tf.
add
(tf.
relu
(x), tf.
mul
(alpha, tf.
neg
(tf.
relu
(tf.
neg
(x))))); }); }
//# sourceMappingURL=prelu.js.map