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

Fix typos in additive_attention #20711

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

Conversation

keerthanakadiri
Copy link
Contributor

I observed a few typos in additive_attention

I observed a few typos in additive_attention
@codecov-commenter
Copy link

codecov-commenter commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.22%. Comparing base (5b29974) to head (c487c75).
Report is 87 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #20711      +/-   ##
==========================================
+ Coverage   81.93%   82.22%   +0.29%     
==========================================
  Files         548      561      +13     
  Lines       51190    52955    +1765     
  Branches     7912     8205     +293     
==========================================
+ Hits        41942    43544    +1602     
- Misses       7310     7373      +63     
- Partials     1938     2038     +100     
Flag Coverage Δ
keras 82.04% <ø> (+0.28%) ⬆️
keras-jax 64.05% <ø> (+0.05%) ⬆️
keras-numpy 58.84% <ø> (-0.10%) ⬇️
keras-openvino 32.40% <ø> (+2.54%) ⬆️
keras-tensorflow 64.62% <ø> (-0.06%) ⬇️
keras-torch 64.10% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gbaned gbaned self-requested a review January 7, 2025 16:27
@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Jan 7, 2025
@@ -33,7 +33,7 @@ class AdditiveAttention(Attention):
- `query`: Query tensor of shape `(batch_size, Tq, dim)`.
- `value`: Value tensor of shape `(batch_size, Tv, dim)`.
- `key`: Optional key tensor of shape `(batch_size, Tv, dim)`. If
not given, will use `value` for both `key` and `value`, which is
not given, will use the`value` for both `key` and `value`, which is
Copy link
Contributor

Choose a reason for hiding this comment

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

The line you modified is now 83 characters long, which is why the code format check didn't pass. The maximum allowed length is 80.
You can rewrite it to:

Suggested change
not given, will use the`value` for both `key` and `value`, which is
not given, will use the`value` for both `key` and `value`,
which is the most common case.
image

@google-ml-butler google-ml-butler bot removed the ready to pull Ready to be merged into the codebase label Feb 17, 2025
Copy link
Contributor

@nikolasavic3 nikolasavic3 left a comment

Choose a reason for hiding this comment

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

looks good!

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review ready to pull Ready to be merged into the codebase size:XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants