Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 406833038
  • Loading branch information
achoum authored and copybara-github committed Nov 1, 2021
1 parent 407caa6 commit 3b85dbe
Show file tree
Hide file tree
Showing 9 changed files with 530 additions and 377 deletions.
32 changes: 29 additions & 3 deletions tensorflow_decision_forests/keras/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,44 @@ py_test(
# absl/testing:parameterized dep,
# numpy dep,
# pandas dep,
"//third_party/py/portpicker",
"@org_tensorflow//tensorflow/python",
"@org_tensorflow//tensorflow/python/distribute:distribute_lib",
"//tensorflow_decision_forests/component/model_plotter",
"//tensorflow_decision_forests/tensorflow:core",
"//tensorflow_decision_forests/tensorflow/distribute:register_ops",
"@ydf//yggdrasil_decision_forests/dataset:synthetic_dataset_py_proto",
"@ydf//yggdrasil_decision_forests/learner/decision_tree:decision_tree_py_proto",
"@ydf//yggdrasil_decision_forests/learner/random_forest:random_forest_py_proto",
],
)

# This test relies on the support of TF PS distribution strategy and TF-DF.
# Note: TF PS distribution strategy and TF-DF are currently not compatible in non-monolithic build of TensorFlow+TFDF (e.g. OSS TFDF).
py_test(
name = "keras_distributed_test",
size = "large",
srcs = ["keras_distributed_test.py"],
data = [
":synthetic_dataset",
":test_runner",
"@ydf//yggdrasil_decision_forests/test_data",
],
python_version = "PY3",
shard_count = 10,
deps = [
":core",
":keras",
"@com_google_protobuf//:python_srcs",
# absl/flags dep,
# absl/logging dep,
# absl/testing:parameterized dep,
# numpy dep,
# pandas dep,
"//third_party/py/portpicker",
"@org_tensorflow//tensorflow/python",
"@org_tensorflow//tensorflow/python/distribute:distribute_lib",
"//third_party/tensorflow_decision_forests",
],
)

py_binary(
name = "test_runner",
srcs = ["test_runner.py"],
Expand Down
Loading

0 comments on commit 3b85dbe

Please sign in to comment.