Contents

functionName

Function name that MLModel will use.

Declaration

var functionName: String? { get set }

Discussion

Some model types (e.g. ML Program) supports multiple functions in a model asset, where each MLModel instance is associated with a particular function.

Use MLModelAsset to get the list of available functions. Use nil to use a default function.

let configuration = MLModelConfiguration()
configuration.functionName = "my_function"

See Also

Configuring model parameters