---
title: "tileGradient(withIncomingGradientTensor:sourceTensor:withMultiplier:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/tilegradient(withincominggradienttensor:sourcetensor:withmultiplier:name:)"
---

# tileGradient(withIncomingGradientTensor:sourceTensor:withMultiplier:name:)

Creates a tile gradient operation and returns the result tensor.

## Declaration

```swift
func tileGradient(withIncomingGradientTensor incomingGradientTensor: MPSGraphTensor, sourceTensor: MPSGraphTensor, withMultiplier multiplier: [NSNumber], name: String?) -> MPSGraphTensor
```

## Parameters

- `incomingGradientTensor`: The input gradient tensor.
- `sourceTensor`: The input tensor of the forward pass.
- `multiplier`: An array of numbers that specifies how many copies per dimension MPSGraph produced in the forward pass.
- `name`: The name for the operation.

## Return Value

Return Value A valid MPSGraphTensor object.
