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

[feat] refactor embedding group input tile and dense embedding collection #75

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tiankongdeguiji
Copy link
Collaborator

No description provided.

kt = batch.dense_features[key + "_item"]
kt_keys.extend(kt.keys())
kt_length_per_key.extend(kt.length_per_key())
kt_values.append(kt.values().tile(batch.batch_size, 1))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

怎么item 也tile了?

if input_tile_emb:
sparse_feat_kjt = batch.sparse_features[key + "_item"]
else:
sparse_feat_kjt = batch.sparse_features[key]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sparse 之前是有改成key_item/key_user 的,这个是再那里合并的

else:
sparse_feat_kjt = batch.sparse_features[key]

sparse_feat_kjt = batch.sparse_features[key]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上?input-tile=3时,时区分key_item的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants