---
title: BNNS.Norm
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/bnns/norm
---

# BNNS.Norm

Constants that describe norm types.

## Declaration

```swift
@frozen struct Norm
```

## Topics

### Norm Types

- [taxicab](accelerate/bnns/norm/taxicab.md)
- [l1](accelerate/bnns/norm/l1.md)
- [euclidean](accelerate/bnns/norm/euclidean.md)
- [l2](accelerate/bnns/norm/l2.md)
- [maximum](accelerate/bnns/norm/maximum.md)
- [lInfinity](accelerate/bnns/norm/linfinity.md)

### Raw Values

- [init(rawValue:)](accelerate/bnns/norm/init(rawvalue:).md)
- [rawValue](accelerate/bnns/norm/rawvalue.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating an Embedding Layer

- [init(input:output:dictionary:paddingIndex:maximumNorm:normType:scalesGradientByFrequency:filterParameters:)](accelerate/bnns/embeddinglayer/init(input:output:dictionary:paddingindex:maximumnorm:normtype:scalesgradientbyfrequency:filterparameters:).md)
