Skip to content

Commit

Permalink
PR #17789: [keras/layers/attention/additive_attention.py] Standardise…
Browse files Browse the repository at this point in the history
… docstring usage of "Default to"

Imported from GitHub PR #17789

This is one of many PRs. Discussion + request to split into multiple PRs @ #17748
Copybara import of the project:

--
235ad94 by Samuel Marks <807580+SamuelMarks@users.noreply.github.com>:

[keras/layers/attention/additive_attention.py] Standardise docstring usage of "Defaults to"

Merging this change closes #17789

FUTURE_COPYBARA_INTEGRATE_REVIEW=#17789 from SamuelMarks:keras.layers.attention.additive_attention-defaults-to 235ad94
PiperOrigin-RevId: 522172709
  • Loading branch information
tensorflower-gardener committed Apr 6, 2023
1 parent db138de commit fc3893b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras/layers/attention/additive_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class AdditiveAttention(BaseDenseAttention):
use_scale: If `True`, will create a variable to scale the attention
scores.
dropout: Float between 0 and 1. Fraction of the units to drop for the
attention scores. Defaults to 0.0.
attention scores. Defaults to `0.0`.
Call Args:
Expand All @@ -73,7 +73,7 @@ class AdditiveAttention(BaseDenseAttention):
use_causal_mask: Boolean. Set to `True` for decoder self-attention. Adds a
mask such that position `i` cannot attend to positions `j > i`. This
prevents the flow of information from the future towards the past.
Defaults to `False`.`
Defaults to `False`.
Output:
Expand Down

0 comments on commit fc3893b

Please sign in to comment.