node_modules/@tensorflow/tfjs-data/dist/tf-data.js
/**
     * Returns true if the new type can't encode the old type without loss of
     * precision.
     */
Returns true if the new type can't encode the old type without loss of
precision.
Returns true if the new type can ' t encode the old type without loss of precision .
function hasEncodingLoss(oldType, newType) {
        if (newType === 'complex64') {
            return false;
        }
        if (newType === 'float32' && oldType !== 'complex64') {
            return false;
        }
        if (newType === 'int32' && oldType !== 'float32' && oldType !== 'complex64') {
            return false;
        }
        if (newType === 'bool' && oldType === 'bool') {
            return false;
        }
        return true;
    }
function hasEncodingLoss ( oldType , newType ) { if ( newType === 'complex64' ) { return false ; } if ( newType === 'float32' && oldType !== 'complex64' ) { return false ; } if ( newType === 'int32' && oldType !== 'float32' && oldType !== 'complex64' ) { return false ; } if ( newType === 'bool' && oldType === 'bool' ) { return false ; } return true ; }
Returns true if the new type can't encode the old type without loss of
 precision.
Returns true if the new type can ' t encode the old type without loss of precision .