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

# threshold(to:)

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

## Declaration

```swift
func threshold(to lowerBound: Float) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

- `lowerBound`: The lower bound.
