---
title: "cumulativeMinimum(_:axis:exclusive:reverse:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/cumulativeminimum(_:axis:exclusive:reverse:name:)"
---

# cumulativeMinimum(_:axis:exclusive:reverse:name:)

Computes the cumulative minimum of the input tensor along the specified axis.

## Declaration

```swift
func cumulativeMinimum(_ tensor: MPSGraphTensor, axis: Int, exclusive: Bool, reverse: Bool, name: String?) -> MPSGraphTensor
```

## Parameters

- `tensor`: The input tensor
- `axis`: The tensor dimension where you compute the cumulative operation
- `exclusive`: If true, perform the exclusive cumulative operation, and the first element will be equal to the largest value of the tensor data type
- `reverse`: If true, reverse the direction of the cumulative operation along the specified axis
- `name`: The name for the operation.

## Return Value

Return Value A valid MPSGraphTensor object
