executeFunction(_:arguments:)
Executes the specified function using an array of input and output pointers.
Declaration
func executeFunction<T>(_ function: String? = nil, arguments: [T]) throws where T : BNNSGraph.PointerArgumentParameters
- function:
The function. Specify as
nilif the graph only contains one function. - arguments:
The output and input arguments. Note that the arguments may not be in the same order as the original
mlpackageormlmodelcfile. Use the Argumentposition(forfunction:argument:) function to get the correct position in theargumentsarray for a given argument.