<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.0.0",
    "iPadOS: 14.0.0 - 17.0.0",
    "macCatalyst: 14.0.0 - 17.0.0",
    "macOS: 11.0.0 - 14.0.0",
    "tvOS: 14.0.0 - 17.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCEmbeddingDescriptor/init(embeddingCount:embeddingDimension:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ML Compute",
      "MLCompute"
    ],
    "preciseIdentifier" : "s:So22MLCEmbeddingDescriptorC9MLComputeE14embeddingCount0D9DimensionABSgSi_Sitcfc"
  },
  "title" : "init(embeddingCount:embeddingDimension:)"
}
-->

# init(embeddingCount:embeddingDimension:)

Creates an embedding descriptor with the size of the dictionary and dimension of embedding vectors you specify.

```
convenience init?(embeddingCount: Int, embeddingDimension: Int)
```

## Parameters

`embeddingCount`

The size of the dictionary.

`embeddingDimension`

The dimension of embedding vectors.

---

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)