2020-08-20 02:05:34 +02:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
exports.extractWeightsFactory = void 0;
|
|
|
|
function extractWeightsFactory(weights) {
|
2020-08-18 14:04:33 +02:00
|
|
|
let remainingWeights = weights;
|
|
|
|
function extractWeights(numWeights) {
|
|
|
|
const ret = remainingWeights.slice(0, numWeights);
|
|
|
|
remainingWeights = remainingWeights.slice(numWeights);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
function getRemainingWeights() {
|
|
|
|
return remainingWeights;
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
extractWeights,
|
|
|
|
getRemainingWeights
|
|
|
|
};
|
|
|
|
}
|
2020-08-20 02:05:34 +02:00
|
|
|
exports.extractWeightsFactory = extractWeightsFactory;
|
2020-08-18 14:04:33 +02:00
|
|
|
//# sourceMappingURL=extractWeightsFactory.js.map
|