Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Tensor to RaggedTensor in PrepareFeatures for list features #1028

Conversation

oliverholworthy
Copy link
Member

FIxes error about concatenation of features with different dimensions following change in dataloader for list columns of fixed size NVIDIA-Merlin/dataloader#112

The current implementation (of the EmbeddingTable layer for example) relies on an assumption that all list features (whether ragged or not) are passed through as ragged tensors. In the case of the EmbeddingTable this is for the combiner="mean" to work which is passed to the tf.nn.safe_embedding_lookup_sparse function to take the average of the embeddings of list features by default.

@oliverholworthy oliverholworthy added the chore Maintenance for the repository label Mar 22, 2023
@oliverholworthy oliverholworthy added this to the Merlin 23.03 milestone Mar 22, 2023
@oliverholworthy oliverholworthy self-assigned this Mar 22, 2023
@oliverholworthy oliverholworthy marked this pull request as ready for review March 22, 2023 10:42
@github-actions
Copy link

Documentation preview

https://nvidia-merlin.github.io/models/review/pr-1028

@karlhigley karlhigley merged commit 8df0731 into NVIDIA-Merlin:main Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance for the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants