Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tflite/kernels/parse_example/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ cc_library(
"@com_google_absl//absl/types:span",
"@flatbuffers",
"@org_tensorflow//tensorflow/core/platform:hash",
"@org_tensorflow//third_party/protobuf/io",
] + select({
"@org_tensorflow//tensorflow:android": [
"@org_tensorflow//tensorflow/core:portable_tensorflow_lib_lite",
Expand Down Expand Up @@ -73,7 +74,12 @@ tf_cc_test(
"//tflite/kernels:test_main",
"//tflite/kernels:test_util",
"//tflite/schema:schema_fbs",
"@com_google_absl//absl/log:check",
"@com_google_googletest//:gtest",
"@flatbuffers",
"@org_tensorflow//tensorflow/core/example:example_protos_cc",
"@org_tensorflow//third_party/protobuf",
"@org_tensorflow//third_party/protobuf/io",
] + select({
"@org_tensorflow//tensorflow:android": [
"@org_tensorflow//tensorflow/core:portable_tensorflow_lib_lite",
Expand Down Expand Up @@ -124,6 +130,7 @@ cc_library(
"@org_tensorflow//tensorflow/core:lib",
"@org_tensorflow//tensorflow/core:lib_internal",
"@org_tensorflow//tensorflow/core:protos_all_cc",
"@org_tensorflow//third_party/protobuf/io",
],
)

Expand All @@ -142,10 +149,15 @@ tf_cc_test(
"//tflite/kernels:test_main",
"//tflite/kernels:test_util",
"//tflite/schema:schema_fbs",
"@com_google_absl//absl/log:check",
"@com_google_googletest//:gtest",
"@flatbuffers",
"@org_tensorflow//tensorflow/core:protos_all_cc",
"@org_tensorflow//tensorflow/core/example:example_protos_cc",
"@org_tensorflow//tensorflow/core/example:feature_util",
"@org_tensorflow//tensorflow/core/platform:protobuf",
"@org_tensorflow//tensorflow/core/platform:tstring",
"@org_tensorflow//third_party/protobuf",
"@org_tensorflow//third_party/protobuf/io",
],
)
9 changes: 9 additions & 0 deletions tflite/kernels/parse_example/example_proto_fast_parsing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ limitations under the License.
#include "tflite/kernels/parse_example/example_proto_fast_parsing.h"

#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <utility>
#include <vector>

#include "absl/log/check.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "third_party/protobuf/io/coded_stream.h"
#include "tensorflow/core/framework/types.pb.h"

namespace tensorflow {
namespace example {
Expand Down
5 changes: 5 additions & 0 deletions tflite/kernels/parse_example/example_proto_fast_parsing.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ limitations under the License.

#include "absl/base/casts.h"
#include "absl/container/flat_hash_map.h"
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "third_party/protobuf/io/coded_stream.h"
#include "tensorflow/core/example/example.pb.h"
#include "tensorflow/core/example/feature.pb.h"
#include "tensorflow/core/framework/allocator.h"
Expand Down
2 changes: 2 additions & 0 deletions tflite/kernels/parse_example/parse_example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ limitations under the License.
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "flatbuffers/flexbuffers.h" // from @flatbuffers
#include "third_party/protobuf/io/coded_stream.h"
#include "xla/tsl/platform/errors.h"
#include "tensorflow/core/example/feature.pb.h"
#include "tensorflow/core/framework/attr_value.pb.h"
#include "tensorflow/core/framework/node_def.pb.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/framework/tensor_shape.h"
#include "tensorflow/core/framework/types.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/platform/errors.h"
#include "tensorflow/core/platform/stringpiece.h"
#include "tensorflow/core/platform/tstring.h"
Expand Down
9 changes: 9 additions & 0 deletions tflite/kernels/parse_example/parse_example_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@ limitations under the License.
==============================================================================*/
#include "tflite/kernels/parse_example/parse_example.h"

#include <cstddef>
#include <cstdint>
#include <cstring>
#include <initializer_list>
#include <string>
#include <vector>

#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "absl/log/check.h"
#include "flatbuffers/flexbuffers.h" // from @flatbuffers
#include "third_party/protobuf/io/zero_copy_stream_impl_lite.h"
#include "third_party/protobuf/text_format.h"
#include "tensorflow/core/example/example.pb.h"
#include "tensorflow/core/example/feature_util.h"
#include "tensorflow/core/framework/node_def.pb.h"
#include "tensorflow/core/platform/protobuf.h"
Expand Down
Loading