---
title: "inputDimensions(bufferIndex:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4machinelearningpipelinedescriptor/inputdimensions(bufferindex:)"
---

# inputDimensions(bufferIndex:)

Obtains the dimensions of the input tensor at bufferIndex if set, nil otherwise.

## Declaration

```swift
func inputDimensions(bufferIndex: Int) -> MTLTensorExtents?
```
