<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShadersGraph",
  "identifier" : "/documentation/MetalPerformanceShadersGraph/MPSGraph/call(symbolName:inputTensors:outputTypes:name:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal Performance Shaders Graph",
      "MetalPerformanceShadersGraph"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSGraph(im)callSymbolName:inputTensors:outputTypes:name:"
  },
  "title" : "call(symbolName:inputTensors:outputTypes:name:)"
}
-->

# call(symbolName:inputTensors:outputTypes:name:)

Creates an operation which invokes another executable.

```
func call(symbolName: String, inputTensors: [MPSGraphTensor], outputTypes: [MPSGraphType], name: String?) -> [MPSGraphTensor]
```

## Parameters

`symbolName`

The unique identifier used to find the executable in the `MPSGraphCompilationDescriptor.callables` directory.

`inputTensors`

The tensors which are passed as inputs to the executable being invoked.

`outputTypes`

The expected return types of the executable being invoked.

`name`

name of operation.

## Return Value

An array of valid [`MPSGraphTensor`](/documentation/MetalPerformanceShadersGraph/MPSGraphTensor) objects representing the return tensors of the invoked executable.

---

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)