node_modules/@tensorflow/tfjs-core/dist/ops/slice_util.js
/**
 * Returns true if the slice occupies a continous set of elements in the
 * 'flat' space.
 */
Returns true if the slice occupies a continous set of elements in the
'flat' space.
Returns true if the slice occupies a continous set of elements in the ' flat ' space .
function isSliceContinous(shape, begin, size) {
    var firstNonOneAxis = size.length;
    for (var i = 0; i < size.length; i++) {
        if (size[i] > 1) {
            firstNonOneAxis = i;
            break;
        }
    }
    for (var i = firstNonOneAxis + 1; i < size.length; i++) {
        if (begin[i] > 0 || size[i] !== shape[i]) {
            return false;
        }
    }
    return true;
}
function isSliceContinous ( shape , begin , size ) { var firstNonOneAxis = size . length ; for ( var i = 0 ; i < size . length ; i ++ ) { if ( size [ i ] > 1 ) { firstNonOneAxis = i ; break ; } } for ( var i = firstNonOneAxis + 1 ; i < size . length ; i ++ ) { if ( begin [ i ] > 0 || size [ i ] !== shape [ i ] ) { return false ; } } return true ; }
Returns true if the slice occupies a continous set of elements in the
 'flat' space.
Returns true if the slice occupies a continous set of elements in the ' flat ' space .
// Index of the first axis that has size > 1.