12345678910111213 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var tf = require("@tensorflow/tfjs-core");
- function convLayer(x, params, padding, withRelu) {
- if (padding === void 0) { padding = 'same'; }
- if (withRelu === void 0) { withRelu = false; }
- return tf.tidy(function () {
- var out = tf.add(tf.conv2d(x, params.filters, [1, 1], padding), params.bias);
- return withRelu ? tf.relu(out) : out;
- });
- }
- exports.convLayer = convLayer;
- //# sourceMappingURL=convLayer.js.map
|