---
title: "setInputDimensions(_:bufferIndex:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4machinelearningpipelinedescriptor/setinputdimensions(_:bufferindex:)-8fnq7"
---

# setInputDimensions(_:bufferIndex:)

Sets the dimensions of multiple input tensors on a range of buffer bindings.

## Declaration

```swift
func setInputDimensions(_ dimensions: [MTLTensorExtents], bufferIndex: Int)
```

## Parameters

- `dimensions`: An array of tensor extents.
- `bufferIndex`: The index of the first input to modify. Subsequent array elements affect subsequent indices.
