<!--
{
  "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/MLComputePlanCost",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLComputePlanCost"
  },
  "title" : "MLComputePlanCost"
}
-->

# MLComputePlanCost

A class that represents the estimated cost of executing a layer or operation.

```
@interface MLComputePlanCost : NSObject
```

## Topics

### Accessing the weight

[`weight`](/documentation/CoreML/MLComputePlanCost/weight)

The estimated workload of executing the operation over the total model execution. The value is between [0.0, 1.0].



---

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)