---
title: MPSGraphExecutable
framework: metalperformanceshadersgraph
role: symbol
role_heading: Class
path: metalperformanceshadersgraph/mpsgraphexecutable
---

# MPSGraphExecutable

The compiled representation of a compute graph executable.

## Declaration

```swift
class MPSGraphExecutable
```

## Overview

Overview An MPSGraphExecutable is a compiled graph for specific feeds for specific target tensors and target operations.

## Topics

### Initializers

- [init(MPSGraphPackageAtURL:compilationDescriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/init(mpsgraphpackageaturl:compilationdescriptor:).md)
- [init(coreMLPackageAtURL:compilationDescriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/init(coremlpackageaturl:compilationdescriptor:).md)
- [init(coreMLPackageAtURL:descriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/init(coremlpackageaturl:descriptor:).md)
- [init(package:descriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/init(package:descriptor:).md)

### Instance Properties

- [feedTensors](metalperformanceshadersgraph/mpsgraphexecutable/feedtensors.md)
- [options](metalperformanceshadersgraph/mpsgraphexecutable/options.md)
- [targetTensors](metalperformanceshadersgraph/mpsgraphexecutable/targettensors.md)

### Instance Methods

- [encode(to:inputs:results:executionDescriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/encode(to:inputs:results:executiondescriptor:).md)
- [getOutputTypes(with:inputTypes:compilationDescriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/getoutputtypes(with:inputtypes:compilationdescriptor:).md)
- [run(on:inputs:results:executionDescriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/run(on:inputs:results:executiondescriptor:).md)
- [run(with:inputs:results:executionDescriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/run(with:inputs:results:executiondescriptor:).md)
- [runAsync(on:inputs:results:executionDescriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/runasync(on:inputs:results:executiondescriptor:).md)
- [runAsync(with:inputs:results:executionDescriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/runasync(with:inputs:results:executiondescriptor:).md)
- [serialize(package:descriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/serialize(package:descriptor:).md)
- [specialize(with:inputTypes:compilationDescriptor:)](metalperformanceshadersgraph/mpsgraphexecutable/specialize(with:inputtypes:compilationdescriptor:).md)

## Relationships

### Inherits From

- [MPSGraphObject](metalperformanceshadersgraph/mpsgraphobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Classes

- [MPSGraph](metalperformanceshadersgraph/mpsgraph.md)
- [MPSGraphCompilationDescriptor](metalperformanceshadersgraph/mpsgraphcompilationdescriptor.md)
- [MPSGraphConvolution2DOpDescriptor](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor.md)
- [MPSGraphConvolution3DOpDescriptor](metalperformanceshadersgraph/mpsgraphconvolution3dopdescriptor.md)
- [MPSGraphCreateSparseOpDescriptor](metalperformanceshadersgraph/mpsgraphcreatesparseopdescriptor.md)
- [MPSGraphDepthwiseConvolution2DOpDescriptor](metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor.md)
- [MPSGraphDepthwiseConvolution3DOpDescriptor](metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor.md)
- [MPSGraphDevice](metalperformanceshadersgraph/mpsgraphdevice.md)
- [MPSGraphExecutableExecutionDescriptor](metalperformanceshadersgraph/mpsgraphexecutableexecutiondescriptor.md)
- [MPSGraphExecutableSerializationDescriptor](metalperformanceshadersgraph/mpsgraphexecutableserializationdescriptor.md)
- [MPSGraphExecutionDescriptor](metalperformanceshadersgraph/mpsgraphexecutiondescriptor.md)
- [MPSGraphFFTDescriptor](metalperformanceshadersgraph/mpsgraphfftdescriptor.md)
- [MPSGraphGRUDescriptor](metalperformanceshadersgraph/mpsgraphgrudescriptor.md)
- [MPSGraphImToColOpDescriptor](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor.md)
- [MPSGraphLSTMDescriptor](metalperformanceshadersgraph/mpsgraphlstmdescriptor.md)
