-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
1,429 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Description: | ||
# DynamicEmbeddingLayer allows for the continuous updating of the vocabulary and embeddings during | ||
# the training process. | ||
|
||
# Placeholder: load unaliased py_library | ||
load("@org_keras//keras:keras.bzl", "tf_py_test") | ||
load("@org_keras//keras:keras.bzl", "distribute_py_test") | ||
|
||
package( | ||
default_applicable_licenses = ["//keras:license"], | ||
default_visibility = [ | ||
"//visibility:public", | ||
], | ||
licenses = ["notice"], | ||
) | ||
|
||
py_library( | ||
name = "dynamic_lookup", | ||
srcs = ["dynamic_lookup.py"], | ||
srcs_version = "PY3", | ||
deps = [ | ||
"//:expect_tensorflow_installed", | ||
"//keras/layers", | ||
"//third_party/tensorflow/python/util:core", | ||
], | ||
) | ||
|
||
tf_py_test( | ||
name = "dynamic_lookup_test", | ||
size = "small", | ||
srcs = ["dynamic_lookup_test.py"], | ||
python_version = "PY3", | ||
shard_count = 6, | ||
deps = [ | ||
":dynamic_lookup", | ||
"//:expect_numpy_installed", | ||
"//:expect_tensorflow_installed", | ||
"//keras", | ||
"//testing/pybase", | ||
], | ||
) | ||
|
||
py_library( | ||
name = "dynamic_embedding", | ||
srcs = ["dynamic_embedding.py"], | ||
deps = [ | ||
":dynamic_lookup", | ||
"//:expect_tensorflow_installed", | ||
"//keras/layers", | ||
"//keras/utils", | ||
"//third_party/py/absl/logging", | ||
"//third_party/tensorflow/python/util:core", | ||
], | ||
) | ||
|
||
tf_py_test( | ||
name = "dynamic_embedding_test", | ||
srcs = ["dynamic_embedding_test.py"], | ||
deps = [ | ||
":dynamic_embedding", | ||
"//:expect_tensorflow_installed", | ||
"//keras:callbacks", | ||
"//keras/layers", | ||
"//keras/models", | ||
"//testing/pybase", | ||
], | ||
) | ||
|
||
distribute_py_test( | ||
name = "dynamic_embedding_distributed_test", | ||
srcs = ["dynamic_embedding_distributed_test.py"], | ||
tags = [ | ||
"no_oss", | ||
"no_windows", | ||
], | ||
deps = [ | ||
":dynamic_embedding", | ||
"//:expect_absl_installed", | ||
"//:expect_numpy_installed", | ||
"//:expect_tensorflow_installed", | ||
"//keras", | ||
"//keras:callbacks", | ||
"//keras/testing_infra:test_combinations", | ||
], | ||
) | ||
|
||
distribute_py_test( | ||
name = "dynamic_lookup_distributed_test", | ||
srcs = ["dynamic_lookup_distributed_test.py"], | ||
deps = [ | ||
":dynamic_lookup", | ||
"//:expect_absl_installed", | ||
"//:expect_numpy_installed", | ||
"//:expect_tensorflow_installed", | ||
"//keras", | ||
"//keras/testing_infra:test_combinations", | ||
], | ||
) |
Empty file.
Oops, something went wrong.