Contents

init(compileFromPath:functionName:options:)

Returns a new context that wraps a graph object which represents the compiled .mlmodelc file.

Declaration

init(compileFromPath path: String, functionName: String? = nil, options: BNNSGraph.CompileOptions = CompileOptions()) async throws

Parameters

  • path:

    The path to the .mlmodelc program file.

  • functionName:

    The name of a specific function to be compiled. Pass nil to specify that the function compiles all functions.

  • options:

    The compilation options.

Discussion