static squeezeShape(dims, axes) {
        const outputDims = new Array();
        // sanity check
        axes = ShapeUtil.normalizeAxes(axes, dims.length);
        for (let i = 0; i < dims.length; i++) {
            const inSqueezeList = axes.indexOf(i) >= 0;
            if (inSqueezeList && dims[i] !== 1) {
                throw new Error('squeeze an axis of size different than 1');
            }
            if ((axes.length === 0 && dims[i] > 1) || (axes.length > 0 && !inSqueezeList)) {
                outputDims.push(dims[i]);
            }
        }
        return outputDims;
    }
/**
     * Determines the shape of output tensor y = squeeze(x, axes)
     * @param dims - shape of input tensor
     * @param axes - squeeze axes
     */
Determines the shape of output tensor y = squeeze(x, axes)
@param dims - shape of input tensor
@param axes - squeeze axes
Determines the shape of output tensor y = squeeze ( x axes ) @param dims - shape of input tensor @param axes - squeeze axes
static squeezeShape(dims, axes) {
        const outputDims = new Array();
        axes = ShapeUtil.normalizeAxes(axes, dims.length);
        for (let i = 0; i < dims.length; i++) {
            const inSqueezeList = axes.indexOf(i) >= 0;
            if (inSqueezeList && dims[i] !== 1) {
                throw new Error('squeeze an axis of size different than 1');
            }
            if ((axes.length === 0 && dims[i] > 1) || (axes.length > 0 && !inSqueezeList)) {
                outputDims.push(dims[i]);
            }
        }
        return outputDims;
    }
static squeezeShape ( dims , axes ) { const outputDims = new Array ( ) ; axes = ShapeUtil . normalizeAxes ( axes , dims . length ) ; for ( let i = 0 ; i < dims . length ; i ++ ) { const inSqueezeList = axes . indexOf ( i ) >= 0 ; if ( inSqueezeList && dims [ i ] !== 1 ) { throw new Error ( 'squeeze an axis of size different than 1' ) ; } if ( ( axes . length === 0 && dims [ i ] > 1 ) || ( axes . length > 0 && ! inSqueezeList ) ) { outputDims . push ( dims [ i ] ) ; } } return outputDims ; }
Determines the shape of output tensor y = squeeze(x, axes)
 @param dims - shape of input tensor
 @param axes - squeeze axes
Determines the shape of output tensor y = squeeze ( x axes ) @param dims - shape of input tensor @param axes - squeeze axes
// sanity check