---
title: MLCEmbeddingLayer
framework: ML Compute
role: symbol
role_heading: Class
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcembeddinglayer
---

# MLCEmbeddingLayer

A layer that stores a word embedding.

## Declaration

```swift
class MLCEmbeddingLayer
```

## Topics

### Creating Embedding Layers

- [init(descriptor:weights:)](mlcompute/mlcembeddinglayer/init(descriptor:weights:).md)
- [MLCEmbeddingDescriptor](mlcompute/mlcembeddingdescriptor.md)

### Inspecting Embedding Layers

- [descriptor](mlcompute/mlcembeddinglayer/descriptor.md)
- [weights](mlcompute/mlcembeddinglayer/weights.md)
- [weightsParameter](mlcompute/mlcembeddinglayer/weightsparameter.md)

## Relationships

### Inherits From

- [MLCLayer](mlcompute/mlclayer.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Convolution and Recurrent Layers

- [MLCConvolutionLayer](mlcompute/mlcconvolutionlayer.md)
- [MLCLSTMLayer](mlcompute/mlclstmlayer.md)
- [MLCPoolingLayer](mlcompute/mlcpoolinglayer.md)
- [MLCUpsampleLayer](mlcompute/mlcupsamplelayer.md)
