init(descriptor:weights:)
Creates an embedding layer with the descriptor and word embedding weights tensor you specify.
Declaration
convenience init(descriptor: MLCEmbeddingDescriptor, weights: MLCTensor)Parameters
- descriptor:
An object you use to configure the embedding layer.
- weights:
A word embedding weights tensor.