static adjustPadsBasedOnAutoPad(inputDims, strides, dilations, kernelShape, pads, autoPad) {
        if (!autoPad) {
            return;
        }
        if (pads.length !== 2 * (inputDims.length - 2)) {
            throw new Error('length of pads should be twice the length of data dimensions');
        }
        if (strides.length !== (inputDims.length - 2)) {
            throw new Error('length of strides should be the length of data dimensions');
        }
        if (kernelShape.length !== (inputDims.length - 2)) {
            throw new Error('length of kernel shapes should be the length of data dimensions');
        }
        for (let dim = 0; dim < inputDims.length - 2; dim++) {
            PoolConvUtil.adjustPadAndReturnShape(inputDims[dim + 2], strides[dim], dilations[dim], kernelShape[dim], pads, dim, dim + inputDims.length - 2, autoPad);
        }
    }
// adjust pad values based on 'autoPad' attribute
adjust pad values based on 'autoPad' attribute
adjust pad values based on ' autoPad ' attribute
static adjustPadsBasedOnAutoPad(inputDims, strides, dilations, kernelShape, pads, autoPad) {
        if (!autoPad) {
            return;
        }
        if (pads.length !== 2 * (inputDims.length - 2)) {
            throw new Error('length of pads should be twice the length of data dimensions');
        }
        if (strides.length !== (inputDims.length - 2)) {
            throw new Error('length of strides should be the length of data dimensions');
        }
        if (kernelShape.length !== (inputDims.length - 2)) {
            throw new Error('length of kernel shapes should be the length of data dimensions');
        }
        for (let dim = 0; dim < inputDims.length - 2; dim++) {
            PoolConvUtil.adjustPadAndReturnShape(inputDims[dim + 2], strides[dim], dilations[dim], kernelShape[dim], pads, dim, dim + inputDims.length - 2, autoPad);
        }
    }
static adjustPadsBasedOnAutoPad ( inputDims , strides , dilations , kernelShape , pads , autoPad ) { if ( ! autoPad ) { return ; } if ( pads . length !== 2 * ( inputDims . length - 2 ) ) { throw new Error ( 'length of pads should be twice the length of data dimensions' ) ; } if ( strides . length !== ( inputDims . length - 2 ) ) { throw new Error ( 'length of strides should be the length of data dimensions' ) ; } if ( kernelShape . length !== ( inputDims . length - 2 ) ) { throw new Error ( 'length of kernel shapes should be the length of data dimensions' ) ; } for ( let dim = 0 ; dim < inputDims . length - 2 ; dim ++ ) { PoolConvUtil . adjustPadAndReturnShape ( inputDims [ dim + 2 ] , strides [ dim ] , dilations [ dim ] , kernelShape [ dim ] , pads , dim , dim + inputDims . length - 2 , autoPad ) ; } }
adjust pad values based on 'autoPad' attribute
adjust pad values based on ' autoPad ' attribute