MCPcopy
hub / github.com/BrainJS/brain.js / NeuralNetworkGPU

Function NeuralNetworkGPU

browser.js:503–523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

501 _inherits(NeuralNetworkGPU, _NeuralNetwork);
502
503 function NeuralNetworkGPU() {
504 var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
505
506 _classCallCheck(this, NeuralNetworkGPU);
507
508 var _this = _possibleConstructorReturn(this, (NeuralNetworkGPU.__proto__ || Object.getPrototypeOf(NeuralNetworkGPU)).call(this, options));
509
510 _this.forwardPropagate = [];
511 _this.backwardPropagate = [];
512 _this.changesPropagate = [];
513 _this.biasesPropagate = [];
514 _this.biasCopies = [];
515 _this.copyBias = [];
516 _this.changesCopies = [];
517 _this.copyChanges = [];
518 _this.weightsCopies = [];
519 _this.copyWeights = [];
520 _this.errorCheckInterval = 100;
521 _this.gpu = new _gpu2.default({ mode: options.mode });
522 return _this;
523 }
524
525 /**
526 *

Callers

nothing calls this directly

Calls 2

_classCallCheckFunction · 0.70

Tested by

no test coverage detected