recommenders-addons icon indicating copy to clipboard operation
recommenders-addons copied to clipboard

support ragged tensor or input with mask for SquashedEmbedding

Open lu-sitong opened this issue 2 years ago • 2 comments

I notice that SquashedEmbedding allow arbirary shape of tensor and reduce them after lookup. But in most situations, inputs may be ragged tensors, like tags and other sideinfos. In this case, i try to convert ragged tensors to regular tensors with mask. I find SquashedEmbedding indeed doesn't support mask, even thought api_docs shows SquashedEmbedding has a method 'compute_mask()'. I cannot find this method in source code. Expect to support ragged tensor input or regular tensor input with mask for SquashedEmbedding class

lu-sitong avatar Jan 31 '24 07:01 lu-sitong

Sorry that we haven't started to code this function. If possible, could you please contribute the corresponding code?

MoFHeka avatar Mar 07 '24 18:03 MoFHeka

https://github.com/tensorflow/recommenders-addons/pull/397 ragged tensor supported, @lu-sitong

jq avatar Apr 19 '24 16:04 jq