node_modules/@tensorflow/tfjs-data/dist/tf-data.js
// Provide a nested array of TypedArray in given shape.
Provide a nested array of TypedArray in given shape.
Provide a nested array of TypedArray in given shape .
function toNestedArray(shape, a) {
        if (shape.length === 0) {
            return a[0];
        }
        var size = shape.reduce(function (acc, c) { return acc * c; });
        if (size === 0) {
            return [];
        }
        if (size !== a.length) {
            throw new Error("[" + shape + "] does not match the input size.");
        }
        return createNestedArray(0, shape, a);
    }
function toNestedArray ( shape , a ) { if ( shape . length === 0 ) { return a [ 0 ] ; } var size = shape . reduce ( function ( acc , c ) { return acc * c ; } ) ; if ( size === 0 ) { return [ ] ; } if ( size !== a . length ) { throw new Error ( "[" + shape + "] does not match the input size." ) ; } return createNestedArray ( 0 , shape , a ) ; }
Provide a nested array of TypedArray in given shape.
Provide a nested array of TypedArray in given shape .
// Scalar type should return a single number. // A tensor with shape zero should be turned into empty list.