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] bpv2 (update de by adding delta instead of setting) #133

Merged
merged 1 commit into from
Aug 11, 2021

Conversation

nrailg
Copy link
Contributor

@nrailg nrailg commented Aug 8, 2021

Description

Brief Description of the PR:

DE of tfra used to update embeddings / slots of embeddings by setting values, which introduces race condition problem among workers.

This PR solves this problem by updating MHTs of DE using the CuckooHashTable.Accum.

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:

  • see ./demo/bpv2/*
  • see ./tensorflow_recommenders_addons/dynamic_embedding/python/kernel_tests/dynamic_embedding_optimizer_test.py

demo/bpv2/main.py Outdated Show resolved Hide resolved
demo/bpv2/main.py Outdated Show resolved Hide resolved
@rhdong
Copy link
Member

rhdong commented Aug 9, 2021

Hi @nrailgun ,thank you for your excellent job, that 's really useful optimization.

@rhdong rhdong requested review from rhdong and Lifann August 9, 2021 09:11
@nrailg nrailg force-pushed the nrwu/bpv2 branch 2 times, most recently from cad9938 to c8b84e4 Compare August 10, 2021 08:41
@nrailg nrailg changed the title [feat] bpv2 (update de by adding delta instead of set) [feat] bpv2 (update de by adding delta instead of setting) Aug 10, 2021
@nrailg nrailg force-pushed the nrwu/bpv2 branch 3 times, most recently from 34e3547 to 31b32dd Compare August 10, 2021 09:31
@rhdong
Copy link
Member

rhdong commented Aug 11, 2021

LGTM

@rhdong rhdong merged commit 388f357 into tensorflow:master Aug 11, 2021
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.

3 participants