Refactoring: Split logic from generate_examples py_binary target.
PiperOrigin-RevId: 239526811
This commit is contained in:
parent
dca741b737
commit
17ca6549ba
@ -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
4568
tensorflow/lite/testing/generate_examples_lib.py
Normal file
4568
tensorflow/lite/testing/generate_examples_lib.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user