face-api.js
Version:
JavaScript API for face detection and face recognition in the browser with tensorflow.js
10 lines • 333 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var tf = require("@tensorflow/tfjs-core");
function prelu(x, alpha) {
return tf.tidy(function () {
return tf.add(tf.relu(x), tf.mul(alpha, tf.neg(tf.relu(tf.neg(x)))));
});
}
exports.prelu = prelu;
//# sourceMappingURL=prelu.js.map
;