---
title: "tileTensor(_:withMultiplier:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/tiletensor(_:withmultiplier:name:)"
---

# tileTensor(_:withMultiplier:name:)

Creates a tile operation and returns the result tensor.

## Declaration

```swift
func tileTensor(_ tensor: MPSGraphTensor, withMultiplier multiplier: [NSNumber], name: String?) -> MPSGraphTensor
```

## Parameters

- `tensor`: The input tensor
- `multiplier`: An array of numbers that specifies how many copies per dimension MPSGraph produces.
- `name`: The name for the operation.

## Return Value

Return Value A valid MPSGraphTensor object.

## Discussion

Discussion Creates a tensor which contains multiple copies of the input tensor along each dimension of the tensor.
