Embedding layer - Keras
keras.io › api › layersEmbedding layer Embedding class tf.keras.layers.Embedding( input_dim, output_dim, embeddings_initializer="uniform", embeddings_regularizer=None, activity_regularizer=None, embeddings_constraint=None, mask_zero=False, input_length=None, **kwargs ) Turns positive integers (indexes) into dense vectors of fixed size.
tf.keras.layers.Embedding | TensorFlow Core v2.7.0
www.tensorflow.org › tf › kerastf.keras.layers.Embedding ( input_dim, output_dim, embeddings_initializer='uniform', embeddings_regularizer=None, activity_regularizer=None, embeddings_constraint=None, mask_zero=False, input_length=None, **kwargs ) Used in the notebooks e.g. [ [4], [20]] -> [ [0.25, 0.1], [0.6, -0.2]] This layer can only be used as the first layer in a model.