Contents

load(contentsOf:configuration:)

Construct the compute plan of a model asynchronously given the location of its on-disk representation.

Declaration

static func load(contentsOf url: URL, configuration: MLModelConfiguration) async throws -> MLComputePlan

Parameters

  • url:

    The on-disk location of the compiled model (.mlmodelc directory).

  • configuration:

    The model configuration.

See Also

Loading a compute plan