---
title: "reductionMaximum(with:axes:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/reductionmaximum(with:axes:name:)"
---

# reductionMaximum(with:axes:name:)

Creates a reduction max operation and returns the result tensor.

## Declaration

```swift
func reductionMaximum(with tensor: MPSGraphTensor, axes: [NSNumber]?, name: String?) -> MPSGraphTensor
```

## Parameters

- `tensor`: Input tensor
- `axes`: Axes of reduction
- `name`: Name for the operation

## Return Value

Return Value A valid MPSGraphTensor object.
