---
title: "inputDescriptor(of:)"
framework: coreai
role: symbol
role_heading: Instance Method
path: "coreai/inferencefunctiondescriptor/inputdescriptor(of:)"
---

# inputDescriptor(of:)

Returns the descriptor for the specified input.

## Declaration

```swift
func inputDescriptor(of inputName: String) -> InferenceValue.Descriptor?
```

## Parameters

- `inputName`: The name of the input.

## Mentioned in

Integrating on-device AI models in your app with Core AI

## Return Value

Return Value The descriptor for the input, or nil if the function doesn’t have an input with the specified name.

## See Also

### Describing inputs

- [inputCount](coreai/inferencefunctiondescriptor/inputcount.md)
- [inputNames](coreai/inferencefunctiondescriptor/inputnames.md)
