face-api/build/common/depthwiseSeparableConv.js

9 lines
359 B
JavaScript
Raw Normal View History

2020-08-20 02:10:42 +02:00
import * as tf from '@tensorflow/tfjs-core';
export function depthwiseSeparableConv(x, params, stride) {
2020-08-18 14:04:33 +02:00
return tf.tidy(() => {
let out = tf.separableConv2d(x, params.depthwise_filter, params.pointwise_filter, stride, 'same');
out = tf.add(out, params.bias);
return out;
});
}
//# sourceMappingURL=depthwiseSeparableConv.js.map