depthwiseSeparableConv.js 490 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var tf = require("@tensorflow/tfjs-core");
  4. function depthwiseSeparableConv(x, params, stride) {
  5. return tf.tidy(function () {
  6. var out = tf.separableConv2d(x, params.depthwise_filter, params.pointwise_filter, stride, 'same');
  7. out = tf.add(out, params.bias);
  8. return out;
  9. });
  10. }
  11. exports.depthwiseSeparableConv = depthwiseSeparableConv;
  12. //# sourceMappingURL=depthwiseSeparableConv.js.map