[go: nahoru, domu]

Skip to content

Commit

Permalink
Move the TfLiteArrayIs matcher out of kernels.
Browse files Browse the repository at this point in the history
This moves the matcher closer to the definition of `TfLite*Array` and allows us to use it inside the `lite` folder without pulling in all the dependencies of `kernels:test_utils`.

PiperOrigin-RevId: 544204174
  • Loading branch information
arfaian authored and tensorflower-gardener committed Jun 29, 2023
1 parent d383ef3 commit 4b5e96e
Show file tree
Hide file tree
Showing 5 changed files with 527 additions and 213 deletions.
16 changes: 0 additions & 16 deletions tensorflow/lite/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -1157,20 +1157,6 @@ cc_test(
],
)

cc_test(
name = "test_util_test",
srcs = ["test_util_test.cc"],
deps = [
":array",
":test_util",
"//tensorflow/lite/core/c:common",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest_main",
],
)

cc_library_with_tflite(
name = "create_op_resolver_header",
hdrs = ["create_op_resolver.h"],
Expand Down Expand Up @@ -1350,8 +1336,6 @@ cc_library_with_tflite(
"//tensorflow/lite/c:test_util",
],
deps = [
":array",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest",
],
)
Expand Down
4 changes: 4 additions & 0 deletions tensorflow/lite/kernels/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,15 @@ cc_library(
":acceleration_test_util",
":kernel_util",
":test_delegate_providers_lib",
"//tensorflow/lite:array",
"//tensorflow/lite:framework_stable",
"//tensorflow/lite:schema_fbs_version",
"//tensorflow/lite:simple_planner",
"//tensorflow/lite:string",
"//tensorflow/lite:string_util",
"//tensorflow/lite:type_to_tflitetype",
"//tensorflow/lite:util",
"//tensorflow/lite/c:common",
"//tensorflow/lite/core:framework_stable",
"//tensorflow/lite/core:subgraph",
"//tensorflow/lite/core/api",
Expand All @@ -217,6 +219,8 @@ cc_library(
"//tensorflow/lite/tools/versioning",
"//tensorflow/tsl/platform:logging",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest",
"@flatbuffers",
Expand Down
Loading

0 comments on commit 4b5e96e

Please sign in to comment.