reports/iftomm_dach/code/bin/mec.deepmech.js
/**
             * @param {object} crops - a tensor containing constraint candidates 
             * @param {array} mirror - contains information about the mirroring of the tensor
             * @param {object} constraintDetector - model to detect constraints 
             */
@param {object} crops - a tensor containing constraint candidates
@param {array} mirror - contains information about the mirroring of the tensor
@param {object} constraintDetector - model to detect constraints
@param { object } crops - a tensor containing constraint candidates @param { array } mirror - contains information about the mirroring of the tensor @param { object } constraintDetector - model to detect constraints
detectConstraints(crops, constraintDetector) {
                let constraints = constraintDetector.predict(crops, { batch_size: crops.shape[0] }).arraySync();
                constraints = constraints.map(c => c.indexOf(Math.max(...c)));
                return constraints;
            }
detectConstraints ( crops , constraintDetector ) { let constraints = constraintDetector . predict ( crops , { batch_size : crops . shape [ 0 ] } ) . arraySync ( ) ; constraints = constraints . map ( c => c . indexOf ( Math . max ( ... c ) ) ) ; return constraints ; }
@param {object} crops - a tensor containing constraint candidates
 @param {array} mirror - contains information about the mirroring of the tensor
 @param {object} constraintDetector - model to detect constraints
@param { object } crops - a tensor containing constraint candidates @param { array } mirror - contains information about the mirroring of the tensor @param { object } constraintDetector - model to detect constraints