init(compileFromPath:functionName:options:)
Synchronously 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()) throwsParameters
- path:
The path to the
.mlmodelcprogram file. - functionName:
The name of a specific function to be compiled. Pass
nilto specify that the function compiles all functions. - options:
The compilation options.