---
title: "l2Norm(epsilon:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/builder/tensor/l2norm(epsilon:)"
---

# l2Norm(epsilon:)

Adds an L2 spatial normalization operation to the current graph.

## Declaration

```swift
func l2Norm(epsilon: Float = .ulpOfOne.squareRoot()) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

- `epsilon`: The epsilon value that the function uses to avoid division by zero.

## Discussion

Discussion This function performs y = x / sqrt(sum_square(x) + epsilon).
