---
title: "max(y:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/builder/tensor/max(y:)"
---

# max(y:)

Adds an element-wise maximum operation to the current graph.

## Declaration

```swift
func max(y: some BNNSGraph.Builder.OperationParameter<T>) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

- `y`: The y in max(self, y).
