Contents

functionDescriptor(for:)

Returns a descriptor for the specified function.

Declaration

func functionDescriptor(for functionName: String) -> InferenceFunctionDescriptor?

Parameters

  • functionName:

    The name of the function to describe.

Return Value

A descriptor for the function, or nil if the model doesn’t contain a function with the specified name.

Discussion

Use the descriptor to inspect the function’s inputs, outputs, and state names before loading it for inference.

See Also

Loading inference functions