<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSEmbeddingFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@EA@BNNSEmbeddingFlags"
  },
  "title" : "BNNSEmbeddingFlags"
}
-->

# BNNSEmbeddingFlags

Flags that control behavior of embedding layers.

```
struct BNNSEmbeddingFlags
```

## Topics

### Raw Values

### Embedding Flags

[`init(_:)`](/documentation/Accelerate/BNNSEmbeddingFlags/init(_:))

Creates a new instance with the specified raw value.

[`init(rawValue:)`](/documentation/Accelerate/BNNSEmbeddingFlags/init(rawValue:))

Creates a new instance with the specified raw value.

[`rawValue`](/documentation/Accelerate/BNNSEmbeddingFlags/rawValue)

The corresponding value of the raw type.

[`BNNSEmbeddingFlagScaleGradientByFrequency`](/documentation/Accelerate/BNNSEmbeddingFlagScaleGradientByFrequency)

A flag that specifies that the operation scales calculated gradients based on the number of occurrence of the corresponding index in the input.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)