fullyConnectedLayer.js 369 B

12345678910
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var tf = require("@tensorflow/tfjs-core");
  4. function fullyConnectedLayer(x, params) {
  5. return tf.tidy(function () {
  6. return tf.add(tf.matMul(x, params.weights), params.bias);
  7. });
  8. }
  9. exports.fullyConnectedLayer = fullyConnectedLayer;
  10. //# sourceMappingURL=fullyConnectedLayer.js.map