<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAI",
  "identifier" : "/documentation/CoreAI/InferenceValue/Descriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core AI",
      "CoreAI"
    ],
    "preciseIdentifier" : "s:13CoreAIRuntime14InferenceValueV10DescriptorO"
  },
  "title" : "InferenceValue.Descriptor"
}
-->

# InferenceValue.Descriptor

A description of the type and shape of an inference value.

```
enum Descriptor
```

## Overview

You obtain descriptors from [`InferenceFunctionDescriptor`](/documentation/CoreAI/InferenceFunctionDescriptor) to inspect what kind
of value a function expects for each input or output.

## Topics

### Defining value descriptors

[`case image(ImageDescriptor)`](/documentation/CoreAI/InferenceValue/Descriptor/image(_:))

[`case ndArray(NDArrayDescriptor)`](/documentation/CoreAI/InferenceValue/Descriptor/ndArray(_:))

## Relationships

### Conforms To

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

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

---

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)