---
title: "BNNS.GradientClipping.byNorm(threshold:)"
framework: accelerate
role: symbol
role_heading: Case
path: "accelerate/bnns/gradientclipping/bynorm(threshold:)"
---

# BNNS.GradientClipping.byNorm(threshold:)

A constant that indicates that the operation clips gradients to a specified Euclidean norm.

## Declaration

```swift
case byNorm(threshold: Float)
```

## Parameters

- `threshold`: The maximum Euclidean norm.

## See Also

### Gradient Clipping Functions

- [BNNS.GradientClipping.none](accelerate/bnns/gradientclipping/none.md)
- [BNNS.GradientClipping.byValue(bounds:)](accelerate/bnns/gradientclipping/byvalue(bounds:).md)
- [BNNS.GradientClipping.byGlobalNorm(threshold:globalNorm:)](accelerate/bnns/gradientclipping/byglobalnorm(threshold:globalnorm:).md)
