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

[feature]support ragged tensor in all2all #428

Merged
merged 3 commits into from
Jun 17, 2024
Merged

Conversation

jq
Copy link
Collaborator

@jq jq commented Jun 6, 2024

Description

support ragged tensor in all2all HvdAllToAllEmbedding lookup
refactor embedding variable, introduce embedding_weights interface so that dynamic embedding variable, shadow variable, hvd variable can be easily supported in the lookup and safe_embedding_lookup_sparse

Brief Description of the PR:

Fixes # (issue)

Type of change

  • Bug fix
  • New Tutorial
  • Updated or additional documentation
  • Additional Testing
  • New Feature

Checklist:

  • I've properly formatted my code according to the guidelines
    • By running yapf
    • By running clang-format
  • This PR addresses an already submitted issue for TensorFlow Recommenders-Addons
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

How Has This Been Tested?

If you're adding a bugfix or new feature please describe the tests that you ran to verify your changes:
*

@jq jq requested a review from rhdong as a code owner June 6, 2024 03:10
@jq jq force-pushed the ragged_fix branch 2 times, most recently from f4bb954 to c0a0e38 Compare June 6, 2024 03:13
@jq jq requested a review from MoFHeka June 6, 2024 03:13
@jq jq force-pushed the ragged_fix branch 18 times, most recently from 090c093 to f44f0fd Compare June 11, 2024 00:30
# ...

def _get_processor(v):
"""The processor of v."""
# ...
if isinstance(v, resource_variable_ops.TrainableWrapper):
if isinstance(v, tensorflow_recommenders_addons.dynamic_embedding.python.ops.embedding_variable.TrainableWrapper):
Copy link
Member

@rhdong rhdong Jun 13, 2024

Choose a reason for hiding this comment

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

I have no more concerns except the naming here @jq

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@jq jq force-pushed the ragged_fix branch 4 times, most recently from d130050 to 4157f74 Compare June 17, 2024 04:00
@jq jq force-pushed the ragged_fix branch 3 times, most recently from 3e981d4 to f6d09a6 Compare June 17, 2024 04:34
@jq jq requested a review from rhdong June 17, 2024 12:54
@jq jq force-pushed the ragged_fix branch 3 times, most recently from 8fe1de1 to 26c6ddf Compare June 17, 2024 17:05
Copy link
Member

@rhdong rhdong left a comment

Choose a reason for hiding this comment

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

LGTM

@rhdong rhdong merged commit a985c03 into tensorflow:master Jun 17, 2024
41 checks passed
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.

None yet

2 participants