async function loadWeightsAsArrayBuffer(fetchURLs, loadOptions) {
    if (loadOptions == null) loadOptions = {};
    const fetchFunc = loadOptions.fetchFunc == null ? (0, _environment.env)().platform.fetch : loadOptions.fetchFunc;
    // Create the requests for all of the weights in parallel.
    const requests = fetchURLs.map((fetchURL)=>fetchFunc(fetchURL, loadOptions.requestInit, {
            isBinary: true
        }));
    const fetchStartFraction = 0;
    const fetchEndFraction = 0.5;
    const responses = loadOptions.onProgress == null ? await Promise.all(requests) : await (0, _progress.monitorPromisesProgress)(requests, loadOptions.onProgress, fetchStartFraction, fetchEndFraction);
    const bufferPromises = responses.map((response)=>response.arrayBuffer());
    const bufferStartFraction = 0.5;
    const bufferEndFraction = 1;
    const buffers = loadOptions.onProgress == null ? await Promise.all(bufferPromises) : await (0, _progress.monitorPromisesProgress)(bufferPromises, loadOptions.onProgress, bufferStartFraction, bufferEndFraction);
    return buffers;
}
Creates a function, which reads a weights manifest JSON configuration,
fetches the weight files using the specified function and returns them as
`Tensor`s.

```js
// example for creating a nodejs weight loader, which reads the weight files
// from disk using fs.readFileSync

import * as fs from 'fs'

const fetchWeightsFromDisk = (filePaths: string[]) =>
  filePaths.map(filePath => fs.readFileSync(filePath).buffer)

const loadWeights = tf.io.weightsLoaderFactory(fetchWeightsFromDisk)

const manifest = JSON.parse(
  fs.readFileSync('./my_model-weights_manifest').toString()
)
const weightMap = await loadWeights(manifest, './')
```
@param fetchWeightsFunction The function used for fetching the weight files.
@returns Weight loading function.