keras-hub-nightly 0.22.0.dev202506180415__py3-none-any.whl → 0.22.0.dev202506190413__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- keras_hub/src/layers/modeling/transformer_encoder.py +6 -3
- keras_hub/src/version.py +1 -1
- {keras_hub_nightly-0.22.0.dev202506180415.dist-info → keras_hub_nightly-0.22.0.dev202506190413.dist-info}/METADATA +1 -1
- {keras_hub_nightly-0.22.0.dev202506180415.dist-info → keras_hub_nightly-0.22.0.dev202506190413.dist-info}/RECORD +6 -6
- {keras_hub_nightly-0.22.0.dev202506180415.dist-info → keras_hub_nightly-0.22.0.dev202506190413.dist-info}/WHEEL +0 -0
- {keras_hub_nightly-0.22.0.dev202506180415.dist-info → keras_hub_nightly-0.22.0.dev202506190413.dist-info}/top_level.txt +0 -0
@@ -16,9 +16,12 @@ class TransformerEncoder(keras.layers.Layer):
|
|
16
16
|
paper [Attention is All You Need](https://arxiv.org/abs/1706.03762). Users
|
17
17
|
can instantiate multiple instances of this class to stack up an encoder.
|
18
18
|
|
19
|
-
This layer will
|
20
|
-
|
21
|
-
|
19
|
+
This layer will compute an attention mask, prioritizing explicitly provided
|
20
|
+
masks (a `padding_mask` or a custom `attention_mask`) over an implicit Keras
|
21
|
+
padding mask (for example, by passing `mask_zero=True` to a
|
22
|
+
`keras.layers.Embedding` layer). If both a `padding_mask` and a
|
23
|
+
`attention_mask` are provided, they will be combined to determine the final
|
24
|
+
mask. See the Masking and Padding
|
22
25
|
[guide](https://keras.io/guides/understanding_masking_and_padding/)
|
23
26
|
for more details.
|
24
27
|
|
keras_hub/src/version.py
CHANGED
@@ -5,7 +5,7 @@ keras_hub/models/__init__.py,sha256=7MhCw7S-uIPcko-R6g5a-Jy1idKe7BwlI836PfekhHc,
|
|
5
5
|
keras_hub/samplers/__init__.py,sha256=aFQIkiqbZpi8vjrPp2MVII4QUfE-eQjra5fMeHsoy7k,886
|
6
6
|
keras_hub/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
keras_hub/src/api_export.py,sha256=9pQZK27JObxWZ96QPLBp1OBsjWigh1iuV6RglPGMRk0,1499
|
8
|
-
keras_hub/src/version.py,sha256=
|
8
|
+
keras_hub/src/version.py,sha256=hpZsLxPCuYMUHCNKCGUlN2_K9e932CkQVY7nWCBsXB0,222
|
9
9
|
keras_hub/src/layers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
keras_hub/src/layers/modeling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
keras_hub/src/layers/modeling/alibi_bias.py,sha256=1XBTHI52L_iJDhN_w5ydu_iMhCuTgQAxEPwcLA6BPuk,4411
|
@@ -22,7 +22,7 @@ keras_hub/src/layers/modeling/rotary_embedding.py,sha256=BuMD2dCyZi73Eokddx8Q9cF
|
|
22
22
|
keras_hub/src/layers/modeling/sine_position_encoding.py,sha256=NAPW9HaVTMNZgUJNzA3l1B3C_FNvaY7IW-5tQgFgnNg,3453
|
23
23
|
keras_hub/src/layers/modeling/token_and_position_embedding.py,sha256=Q-MhVHZSd_W2eWjDCj-s7wo3z8UHmgZ-7j7hElkaXBQ,5263
|
24
24
|
keras_hub/src/layers/modeling/transformer_decoder.py,sha256=50KLxaZwaQglWIcFotx3BFh6RwCMXRvGZNXHQBrJ5KM,21172
|
25
|
-
keras_hub/src/layers/modeling/transformer_encoder.py,sha256=
|
25
|
+
keras_hub/src/layers/modeling/transformer_encoder.py,sha256=kKPGfjpdhqGJs4MmRyx7fk9xU_2TAS-gLGhq9FZdU0w,10828
|
26
26
|
keras_hub/src/layers/modeling/transformer_layer_utils.py,sha256=FuznrW33iG50B-VDN8R1RjuA5JG72yNMJ1TBgWLxR0E,3487
|
27
27
|
keras_hub/src/layers/preprocessing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
28
|
keras_hub/src/layers/preprocessing/audio_converter.py,sha256=YGh_kQw65a1Z6S5zzSNVP-ChyLYHq3-eOYpOS53xIN8,4156
|
@@ -517,7 +517,7 @@ keras_hub/src/utils/transformers/preset_loader.py,sha256=K5FzDAtCuXS9rmZc0Zj7UCw
|
|
517
517
|
keras_hub/src/utils/transformers/safetensor_utils.py,sha256=CYUHyA4y-B61r7NDnCsFb4t_UmSwZ1k9L-8gzEd6KRg,3339
|
518
518
|
keras_hub/tokenizers/__init__.py,sha256=uMjjm0mzUkRb0e4Ac_JK8aJ9cKGUi5UqmzWoWAFJprE,4164
|
519
519
|
keras_hub/utils/__init__.py,sha256=jXPqVGBpJr_PpYmqD8aDG-fRMlxH-ulqCR2SZMn288Y,646
|
520
|
-
keras_hub_nightly-0.22.0.
|
521
|
-
keras_hub_nightly-0.22.0.
|
522
|
-
keras_hub_nightly-0.22.0.
|
523
|
-
keras_hub_nightly-0.22.0.
|
520
|
+
keras_hub_nightly-0.22.0.dev202506190413.dist-info/METADATA,sha256=aeqbPu3SMybWNG4VWxkrFr3sWR4IhshHN5wJCLfJ4mQ,7393
|
521
|
+
keras_hub_nightly-0.22.0.dev202506190413.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
522
|
+
keras_hub_nightly-0.22.0.dev202506190413.dist-info/top_level.txt,sha256=N4J6piIWBKa38A4uV-CnIopnOEf8mHAbkNXafXm_CuA,10
|
523
|
+
keras_hub_nightly-0.22.0.dev202506190413.dist-info/RECORD,,
|
File without changes
|