depthwiseSeparableConv.js 365 B

123456789
  1. import * as tf from '@tensorflow/tfjs-core';
  2. export function depthwiseSeparableConv(x, params, stride) {
  3. return tf.tidy(function () {
  4. var out = tf.separableConv2d(x, params.depthwise_filter, params.pointwise_filter, stride, 'same');
  5. out = tf.add(out, params.bias);
  6. return out;
  7. });
  8. }
  9. //# sourceMappingURL=depthwiseSeparableConv.js.map