Skip to content

Commit 9ec38e9

Browse files
tfx-copybarazoyahav
authored andcommitted
Migrates callers of migrated proto code
PiperOrigin-RevId: 486801954
1 parent b8b3765 commit 9ec38e9

6 files changed

Lines changed: 11 additions & 18 deletions

File tree

struct2tensor/benchmarks/serialization_benchmark.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ BM_SerializeFlatProto/100/100 53926 53725 1000 860.641MB
4343

4444
#include <iostream>
4545

46-
#include "google/protobuf/descriptor.h"
47-
#include "google/protobuf/message.h"
4846
#include "testing/base/public/benchmark.h"
4947
#include "absl/flags/flag.h"
5048
#include "absl/flags/parse.h"
5149
#include "absl/random/distributions.h"
5250
#include "absl/random/random.h"
51+
#include "google/protobuf/descriptor.h"
52+
#include "google/protobuf/message.h"
5353
#include "struct2tensor/benchmarks/benchmark.pb.h"
5454
#include "tensorflow/core/example/example.pb.h"
5555
#include "tensorflow/core/example/feature_util.h"

struct2tensor/kernels/BUILD

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,11 @@ cc_library(
4646
],
4747
deps = [
4848
":vector_to_tensor",
49-
"@com_google_absl//absl/base:core_headers",
50-
"@com_google_absl//absl/flags:flag",
5149
"@com_google_absl//absl/memory",
52-
"@com_google_protobuf//:cc_wkt_protos",
5350
"@com_google_protobuf//:protobuf",
54-
"@com_google_protobuf//:protobuf_lite",
5551
"@org_tensorflow//tensorflow/core:framework",
5652
"@org_tensorflow//tensorflow/core:framework_lite",
5753
"@org_tensorflow//tensorflow/core:lib",
58-
"@org_tensorflow//tensorflow/core/util/proto:descriptors",
5954
],
6055
alwayslink = 1,
6156
)
@@ -87,7 +82,6 @@ cc_library(
8782
"@com_google_absl//absl/container:flat_hash_map",
8883
"@com_google_absl//absl/strings",
8984
"@com_google_absl//absl/types:span",
90-
"@com_google_protobuf//:cc_wkt_protos",
9185
"@com_google_protobuf//:protobuf",
9286
"@org_tensorflow//tensorflow/core:framework",
9387
"@org_tensorflow//tensorflow/core:lib",
@@ -175,7 +169,6 @@ cc_library(
175169
"@com_google_absl//absl/base:endian",
176170
"@com_google_absl//absl/strings",
177171
"@com_google_protobuf//:protobuf",
178-
"@org_tensorflow//tensorflow/core:framework",
179172
"@org_tensorflow//tensorflow/core:framework_lite",
180173
"@org_tensorflow//tensorflow/core:lib",
181174
],

struct2tensor/kernels/decode_proto_map_op.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ limitations under the License.
3939
#include <memory>
4040
#include <vector>
4141

42-
#include "google/protobuf/descriptor.pb.h"
43-
#include "google/protobuf/descriptor.h"
4442
#include "absl/container/flat_hash_map.h"
4543
#include "absl/strings/numbers.h"
4644
#include "absl/strings/string_view.h"
4745
#include "absl/types/span.h"
46+
#include "google/protobuf/compiler/parser.h"
47+
#include "google/protobuf/descriptor.h"
4848
#include "struct2tensor/kernels/streaming_proto_reader.h"
4949
#include "struct2tensor/kernels/vector_to_tensor.h"
5050
#include "tensorflow/core/framework/op_kernel.h"

struct2tensor/kernels/decode_proto_sparse_op.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ limitations under the License.
3434
#include <utility>
3535
#include <vector>
3636

37-
#include "google/protobuf/io/coded_stream.h"
38-
#include "google/protobuf/descriptor.pb.h"
37+
#include "absl/memory/memory.h"
38+
#include "google/protobuf/compiler/parser.h"
3939
#include "google/protobuf/descriptor.h"
4040
#include "google/protobuf/descriptor_database.h"
4141
#include "google/protobuf/dynamic_message.h"
42+
#include "google/protobuf/io/coded_stream.h"
4243
#include "google/protobuf/message.h"
4344
#include "google/protobuf/text_format.h"
4445
#include "google/protobuf/wire_format.h"
45-
#include "absl/memory/memory.h"
4646
#include "struct2tensor/kernels/vector_to_tensor.h"
4747
#include "tensorflow/core/framework/op_kernel.h"
4848
#include "tensorflow/core/framework/tensor_types.h"

struct2tensor/kernels/streaming_proto_reader.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ limitations under the License.
1414
==============================================================================*/
1515
#include "struct2tensor/kernels/streaming_proto_reader.h"
1616

17-
#include "google/protobuf/wire_format_lite.h"
1817

1918
#include "absl/strings/string_view.h"
19+
#include "google/protobuf/wire_format_lite.h"
2020
#include "tensorflow/core/lib/core/coding.h"
2121

2222
namespace struct2tensor {

struct2tensor/kernels/streaming_proto_reader.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ limitations under the License.
2020
//
2121
// LOG and CHECK free.
2222

23-
#include "google/protobuf/descriptor.h"
24-
#include "google/protobuf/message.h"
25-
#include "google/protobuf/wire_format_lite.h"
2623

2724
#include "absl/base/internal/endian.h"
2825
#include "absl/strings/string_view.h"
26+
#include "google/protobuf/descriptor.h"
27+
#include "google/protobuf/message.h"
28+
#include "google/protobuf/wire_format_lite.h"
2929
#include "tensorflow/core/lib/core/coding.h"
3030
#include "tensorflow/core/platform/types.h"
3131

0 commit comments

Comments
 (0)