keras-hub-nightly 0.21.0.dev202504100401__py3-none-any.whl → 0.21.0.dev202504120359__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/preprocessing/random_deletion.py +1 -1
- keras_hub/src/layers/preprocessing/random_swap.py +1 -1
- keras_hub/src/version_utils.py +1 -1
- {keras_hub_nightly-0.21.0.dev202504100401.dist-info → keras_hub_nightly-0.21.0.dev202504120359.dist-info}/METADATA +1 -1
- {keras_hub_nightly-0.21.0.dev202504100401.dist-info → keras_hub_nightly-0.21.0.dev202504120359.dist-info}/RECORD +7 -7
- {keras_hub_nightly-0.21.0.dev202504100401.dist-info → keras_hub_nightly-0.21.0.dev202504120359.dist-info}/WHEEL +0 -0
- {keras_hub_nightly-0.21.0.dev202504100401.dist-info → keras_hub_nightly-0.21.0.dev202504120359.dist-info}/top_level.txt +0 -0
@@ -125,7 +125,7 @@ class RandomDeletion(PreprocessingLayer):
|
|
125
125
|
|
126
126
|
self.rate = rate
|
127
127
|
self.max_deletions = max_deletions
|
128
|
-
self.seed = random.randint(1, 1e9) if seed is None else seed
|
128
|
+
self.seed = random.randint(1, int(1e9)) if seed is None else seed
|
129
129
|
self._generator = tf.random.Generator.from_seed(self.seed)
|
130
130
|
self.skip_list = skip_list
|
131
131
|
self.skip_fn = skip_fn
|
@@ -127,7 +127,7 @@ class RandomSwap(PreprocessingLayer):
|
|
127
127
|
|
128
128
|
self.rate = rate
|
129
129
|
self.max_swaps = max_swaps
|
130
|
-
self.seed = random.randint(1, 1e9) if seed is None else seed
|
130
|
+
self.seed = random.randint(1, int(1e9)) if seed is None else seed
|
131
131
|
self._generator = tf.random.Generator.from_seed(self.seed)
|
132
132
|
self.skip_list = skip_list
|
133
133
|
self.skip_fn = skip_fn
|
keras_hub/src/version_utils.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: keras-hub-nightly
|
3
|
-
Version: 0.21.0.
|
3
|
+
Version: 0.21.0.dev202504120359
|
4
4
|
Summary: Industry-strength Natural Language Processing extensions for Keras.
|
5
5
|
Home-page: https://github.com/keras-team/keras-hub
|
6
6
|
Author: Keras team
|
@@ -8,7 +8,7 @@ keras_hub/api/tokenizers/__init__.py,sha256=NCQSOg3vf3KlM2YBsxApcJUVu9MH2jV0NQrM
|
|
8
8
|
keras_hub/api/utils/__init__.py,sha256=Gp1E6gG-RtKQS3PBEQEOz9PQvXkXaJ0ySGMqZ7myN7A,215
|
9
9
|
keras_hub/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
keras_hub/src/api_export.py,sha256=9pQZK27JObxWZ96QPLBp1OBsjWigh1iuV6RglPGMRk0,1499
|
11
|
-
keras_hub/src/version_utils.py,sha256=
|
11
|
+
keras_hub/src/version_utils.py,sha256=vNJPuxHiVkrMv6SKJf1wl2d0XDn6gzLfaquHdM5LhSo,222
|
12
12
|
keras_hub/src/layers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
13
|
keras_hub/src/layers/modeling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
14
|
keras_hub/src/layers/modeling/alibi_bias.py,sha256=1XBTHI52L_iJDhN_w5ydu_iMhCuTgQAxEPwcLA6BPuk,4411
|
@@ -33,8 +33,8 @@ keras_hub/src/layers/preprocessing/image_converter.py,sha256=p2CoSV_zfHIVZqLo1hQ
|
|
33
33
|
keras_hub/src/layers/preprocessing/masked_lm_mask_generator.py,sha256=itxWq3FHYlR0I7jKarQlSKbSmRLl9ut_UTSP3ZDwP0A,8162
|
34
34
|
keras_hub/src/layers/preprocessing/multi_segment_packer.py,sha256=ZNqnUFnc9Af122Q7T6YyUoXgIdU9AgIJfsvR1UrCjFU,12068
|
35
35
|
keras_hub/src/layers/preprocessing/preprocessing_layer.py,sha256=WyX41b9Ev_YJ5uVQVOAqD0PQasMOPDoyDjl_PkzkAkE,687
|
36
|
-
keras_hub/src/layers/preprocessing/random_deletion.py,sha256=
|
37
|
-
keras_hub/src/layers/preprocessing/random_swap.py,sha256=
|
36
|
+
keras_hub/src/layers/preprocessing/random_deletion.py,sha256=_EmBt4d8TTPLF3OQhA8HoBmej-BX_BocbjeW6jzi6Wo,9768
|
37
|
+
keras_hub/src/layers/preprocessing/random_swap.py,sha256=cV7HqMwu_JHTbhe9UMVAsZdOTLsukyZDteEBYp0idiM,9509
|
38
38
|
keras_hub/src/layers/preprocessing/start_end_packer.py,sha256=lY2K937z6JucxNe7VknynhhjrcUfFigU6mqIdv2gS-Y,7973
|
39
39
|
keras_hub/src/metrics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
40
|
keras_hub/src/metrics/bleu.py,sha256=pnid5azpAxO6vKEfUtAby3nH29OGbwYKgVGOGeoaA3I,13694
|
@@ -465,7 +465,7 @@ keras_hub/src/utils/transformers/convert_qwen.py,sha256=WUxMAEFVqRs7TRw7QU5TH3_e
|
|
465
465
|
keras_hub/src/utils/transformers/convert_vit.py,sha256=9SUZ9utNJhW_5cj3acMn9cRy47u2eIcDsrhmzj77o9k,5187
|
466
466
|
keras_hub/src/utils/transformers/preset_loader.py,sha256=0Hi7R8HnATcwFVLsJwMMIMWTCXHNfep4IPiRpQXqM-w,3933
|
467
467
|
keras_hub/src/utils/transformers/safetensor_utils.py,sha256=CYUHyA4y-B61r7NDnCsFb4t_UmSwZ1k9L-8gzEd6KRg,3339
|
468
|
-
keras_hub_nightly-0.21.0.
|
469
|
-
keras_hub_nightly-0.21.0.
|
470
|
-
keras_hub_nightly-0.21.0.
|
471
|
-
keras_hub_nightly-0.21.0.
|
468
|
+
keras_hub_nightly-0.21.0.dev202504120359.dist-info/METADATA,sha256=K143A-6W_go6QxaCtnxU9xvWZus5yok9_w6wChpzJkU,7715
|
469
|
+
keras_hub_nightly-0.21.0.dev202504120359.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
470
|
+
keras_hub_nightly-0.21.0.dev202504120359.dist-info/top_level.txt,sha256=N4J6piIWBKa38A4uV-CnIopnOEf8mHAbkNXafXm_CuA,10
|
471
|
+
keras_hub_nightly-0.21.0.dev202504120359.dist-info/RECORD,,
|
File without changes
|