face-api/build/common/extractWeightsFactory.js

20 lines
639 B
JavaScript
Raw Normal View History

"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
};
}
exports.extractWeightsFactory = extractWeightsFactory;
2020-08-18 14:04:33 +02:00
//# sourceMappingURL=extractWeightsFactory.js.map