Refactoring: Split logic from generate_examples py_binary target.

PiperOrigin-RevId: 239526811
This commit is contained in:
Yu-Cheng Ling 2019-03-20 20:06:16 -07:00 committed by TensorFlower Gardener
parent dca741b737
commit 17ca6549ba
3 changed files with 4601 additions and 4497 deletions

View File

@ -70,9 +70,9 @@ test_suite(
], ],
) )
py_binary( py_library(
name = "generate_examples", name = "generate_examples_lib",
srcs = ["generate_examples.py"], srcs = ["generate_examples_lib.py"],
data = [ data = [
"//tensorflow/lite/toco", "//tensorflow/lite/toco",
], ],
@ -87,6 +87,21 @@ py_binary(
], ],
) )
py_binary(
name = "generate_examples",
srcs = ["generate_examples.py"],
data = [
"//tensorflow/lite/toco",
],
srcs_version = "PY2AND3",
deps = [
":generate_examples_lib",
"//tensorflow:tensorflow_py",
"//third_party/py/numpy",
"@six_archive//:six",
],
)
py_library( py_library(
name = "generate_examples_report", name = "generate_examples_report",
srcs = ["generate_examples_report.py"], srcs = ["generate_examples_report.py"],

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff