One Logo Pool Ball
CoreML · IOS API REFERENCE

MLModelStructure.Program.Operation

struct · iOS 17.4+ · SDK 27.1

struct Operation

A struct representing an Operation in the Program.

Members (4)

get · iOS 17.4+

operatorName

TypeScript
get operatorName(): string
Swift declaration
let operatorName: String

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

get · iOS 17.4+

blocks

TypeScript
get blocks(): Array<MLModelStructure_Program_Block>
Swift declaration
let blocks: [MLModelStructure.Program.Block]

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

get · iOS 17.4+

inputs

TypeScript
get inputs(): Record<string, MLModelStructure_Program_Argument>
Swift declaration
let inputs: [String : MLModelStructure.Program.Argument]

The arguments to the Operation.

get · iOS 17.4+

outputs

TypeScript
get outputs(): Array<MLModelStructure_Program_NamedValueType>
Swift declaration
let outputs: [MLModelStructure.Program.NamedValueType]

The outputs of the Operation.

Skipped declarations

No declarations were skipped in this snapshot.

All CoreML types →