---
title: "reductionArgMaximum(with:axis:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/reductionargmaximum(with:axis:name:)"
---

# reductionArgMaximum(with:axis:name:)

Creates a reduction argMax operation and returns the result tensor.

## Declaration

```swift
func reductionArgMaximum(with tensor: MPSGraphTensor, axis: Int, name: String?) -> MPSGraphTensor
```

## Parameters

- `tensor`: Input tensor
- `axis`: Axis of reduction
- `name`: Name for the operation

## Return Value

Return Value A valid MPSGraphTensor object.
