UNPKG

face-api.js

Version:

JavaScript API for face detection and face recognition in the browser with tensorflow.js

7 lines 239 B
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