<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -",
    "watchOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLComputePlan-85vdw/estimatedCostOfMLProgramOperation:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLComputePlan(im)estimatedCostOfMLProgramOperation:"
  },
  "title" : "estimatedCostOfMLProgramOperation:"
}
-->

# estimatedCostOfMLProgramOperation:

Returns the estimated cost of executing an ML Program operation.

```
- (MLComputePlanCost *) estimatedCostOfMLProgramOperation:(MLModelStructureProgramOperation *) operation;
```

## Parameters

`operation`

An ML Program operation.

## Return Value

The estimated cost of executing the operation or nil if the cost couldn’t be estimated.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)