models
models copied to clipboard
[FEA] Functionality to add sparse_weights arg to the EmbeddingTable Class /EMbeddings function
🚀 Feature request
We use tf.nn.safe_embedding_lookup_sparse api in our EmbeddingTable class for embeddings look up, when the input is tf.RaggedTensor or tf.SparseTensor. The original api has the sparse_weights arg that allows users to reweight the inputs before combining them. However, we do not leverage that functionality in Merlin Models, which would be useful to have.
Motivation
This a customer request and a useful feature to have.
Needs clarificaiton with customer to check if the workaround is sufficient.
we shared AverageEmbeddingsByWeightFeature class code, and this unit test with the customer and we are waiting for their update.