• Reads a weights manifest JSON configuration, fetches the weights and returns them as Tensors.

    Parameters

    • manifest: WeightsManifestConfig

      The weights manifest JSON.

    • OptionalfilePathPrefix: string

      The path prefix for filenames given in the manifest. Defaults to the empty string.

    • OptionalweightNames: string[]

      The names of the weights to be fetched.

    • OptionalrequestInit: RequestInit

    Returns Promise<NamedTensorMap>