• Returns a platform-specific implementation of fetch.

    If fetch is defined on the global object (window, process, etc.), tf.util.fetch returns that function.

    If not, tf.util.fetch returns a platform-specific solution.

    const resource = await tf.util.fetch('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs');
    // handle response

    Parameters

    • path: string
    • Optional requestInits: RequestInit

    Returns Promise<Response>

    Doc

Generated using TypeDoc