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

[Numpy] embedding table gradients update vectorized #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

casinca
Copy link

@casinca casinca commented Jul 24, 2024

Hi, for the #TODO.
I used https://numpy.org/doc/stable/reference/generated/numpy.ufunc.at.html with add.
it adds values of demb in dwte at the specified index in idx

It's a bit faster depending on machines than the double for loop.

@casinca casinca closed this Aug 3, 2024
@casinca casinca deleted the backprop-vectorized-gradients-update branch August 3, 2024 16:57
@casinca casinca restored the backprop-vectorized-gradients-update branch August 3, 2024 17:20
@casinca casinca reopened this Aug 3, 2024
@casinca casinca changed the title embedding table gradients update vectorized [Numpy] embedding table gradients update vectorized Aug 9, 2024
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.

1 participant