<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShadersGraph",
  "identifier" : "/documentation/MetalPerformanceShadersGraph/MPSGraphObject",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders Graph"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSGraphObject"
  },
  "title" : "MPSGraphObject"
}
-->

# MPSGraphObject

The common base class for all Metal Performance Shaders Graph objects.

```
class MPSGraphObject
```

## Overview

Only the child classes should be used.

## Relationships

### Conforms To

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

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

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

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Inherited By

[`MPSGraph`](/documentation/MetalPerformanceShadersGraph/MPSGraph)

[`MPSGraphPooling4DOpDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphPooling4DOpDescriptor)

[`MPSGraphCompilationDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphCompilationDescriptor)

[`MPSGraphDevice`](/documentation/MetalPerformanceShadersGraph/MPSGraphDevice)

[`MPSGraphConvolution2DOpDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphConvolution2DOpDescriptor)

[`MPSGraphConvolution3DOpDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphConvolution3DOpDescriptor)

[`MPSGraphOperation`](/documentation/MetalPerformanceShadersGraph/MPSGraphOperation)

[`MPSGraphSingleGateRNNDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphSingleGateRNNDescriptor)

[`MPSGraphImToColOpDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphImToColOpDescriptor)

[`MPSGraphExecutableSerializationDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphExecutableSerializationDescriptor)

[`MPSGraphPooling2DOpDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphPooling2DOpDescriptor)

[`MPSGraphCreateSparseOpDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphCreateSparseOpDescriptor)

[`MPSGraphRandomOpDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphRandomOpDescriptor)

[`MPSGraphType`](/documentation/MetalPerformanceShadersGraph/MPSGraphType)

[`MPSGraphTensor`](/documentation/MetalPerformanceShadersGraph/MPSGraphTensor)

[`MPSGraphFFTDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphFFTDescriptor)

[`MPSGraphSDPADescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphSDPADescriptor)

[`MPSGraphExecutableExecutionDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphExecutableExecutionDescriptor)

[`MPSGraphGRUDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphGRUDescriptor)

[`MPSGraphLSTMDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphLSTMDescriptor)

[`MPSGraphExecutionDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphExecutionDescriptor)

[`MPSGraphTensorData`](/documentation/MetalPerformanceShadersGraph/MPSGraphTensorData)

[`MPSGraphExecutable`](/documentation/MetalPerformanceShadersGraph/MPSGraphExecutable)

[`MPSGraphDepthwiseConvolution2DOpDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphDepthwiseConvolution2DOpDescriptor)

[`MPSGraphDepthwiseConvolution3DOpDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphDepthwiseConvolution3DOpDescriptor)

[`MPSGraphStencilOpDescriptor`](/documentation/MetalPerformanceShadersGraph/MPSGraphStencilOpDescriptor)

---

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)