estimatedCost(of:)
Returns the estimated cost of executing a MLProgram operation.
Declaration
func estimatedCost(of operation: MLModelStructure.Program.Operation) -> MLComputePlan.Cost?Parameters
- operation:
A MLProgram operation
Return Value
The estimated cost of executing the operation.