<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLModelStructure-swift.enum/Program/Operation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "s:6CoreML16MLModelStructureO7ProgramV9OperationV"
  },
  "title" : "MLModelStructure.Program.Operation"
}
-->

# MLModelStructure.Program.Operation

A struct representing an Operation in the Program.

```
struct Operation
```

## Topics

### Accessing the properties

[`let blocks: [MLModelStructure.Program.Block]`](/documentation/CoreML/MLModelStructure-swift.enum/Program/Operation/blocks)

Nested blocks for loops and conditionals, e.g., a conditional block will have two entries here.

[`let inputs: [String : MLModelStructure.Program.Argument]`](/documentation/CoreML/MLModelStructure-swift.enum/Program/Operation/inputs)

The arguments to the Operation.

[`let operatorName: String`](/documentation/CoreML/MLModelStructure-swift.enum/Program/Operation/operatorName)

The name of the operator, e.g., “conv”, “pool”, “softmax”, etc.

[`let outputs: [MLModelStructure.Program.NamedValueType]`](/documentation/CoreML/MLModelStructure-swift.enum/Program/Operation/outputs)

The outputs of the Operation.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)