BNNSGraphGetArgumentInterleaveFactors(_:_:_:_:_:)
Returns the interleave factors for arguments, if present
Declaration
func BNNSGraphGetArgumentInterleaveFactors(_ graph: bnns_graph_t, _ function: UnsafePointer<CChar>?, _ argument_count: Int, _ argument_interleave: UnsafeMutablePointer<UnsafePointer<UInt16>?>, _ argument_interleave_counts: UnsafeMutablePointer<Int>) -> Int32Discussion
If any arguments to the function are specified with an interleave factor (e.g. using the interleave option to tensor_buffer in MIL), this function can be used to retrieve the interleave factor array.
Arguments:
graph: object to query.function: function to query. It may beNULLif there is only one function.argument_count: number of elements inargument_interleaveand inargument_interleave_counts.argument_interleave: array of pointers to interleave factors to populate. On exitargument_interleave[i]will be set to either:NULLif argumentihas no interleave factor; ora pointer into the graph object containing the interleave factors that contains
argument_interleave_counts[i]elements. Only the first [0, min(argument_count, argument_interleave)) entries are set.
argument_interleave_counts: gives the size of the array pointed to byargument_interleave[i], or is set to 0 ifargument_interleave[i]is set toNULL.
Returns: 0 on success, nonzero on failure. Failure may be caused by either invalid values of graph or function.
See Also
Querying a graph’s properties
BNNSGraphGetArgumentIntents(_:_:_:_:)BNNSGraphArgumentIntentBNNSGraphGetArgumentCount(_:_:)BNNSGraphGetArgumentNames(_:_:_:_:)BNNSGraphGetFunctionCount(_:)BNNSGraphGetFunctionNames(_:_:_:)BNNSGraphGetInputCount(_:_:)BNNSGraphGetInputNames(_:_:_:_:)BNNSGraphGetOutputCount(_:_:)BNNSGraphGetOutputNames(_:_:_:_:)BNNSGraphGetArgumentPosition(_:_:_:)