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

# reductionProduct(with:axes:name:)

Creates a reduction product operation and returns the result tensor.

## Declaration

```swift
func reductionProduct(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.
