---
title: "argMin(axis:keepDimension:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/builder/tensor/argmin(axis:keepdimension:)"
---

# argMin(axis:keepDimension:)

Adds an argmin operation to the current graph.

## Declaration

```swift
func argMin(axis: Int, keepDimension: Bool) -> BNNSGraph.Builder.Tensor<Int32>
```

## Discussion

Discussion This function calculates the first index of the minimum value in the tensor.
