Skip to content

Commit d9ddcd2

Browse files
committed
Automated Code Change
PiperOrigin-RevId: 660273619
1 parent 2a6cb07 commit d9ddcd2

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

struct2tensor/kernels/decode_proto_map_op.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,27 +84,27 @@ Status ParseStringAs(const std::string& str, T* val) {
8484
return errors::InvalidArgument(
8585
absl::StrCat("Failed to parse string: ", str, " as integer."));
8686
}
87-
return tensorflow::OkStatus();
87+
return absl::OkStatus();
8888
}
8989

9090
// Specialization for parsing into a string_view.
9191
template <>
9292
Status ParseStringAs<absl::string_view>(const std::string& str,
9393
absl::string_view* val) {
9494
*val = str;
95-
return tensorflow::OkStatus();
95+
return absl::OkStatus();
9696
}
9797

9898
// Specialization for parsing into a boolean.
9999
template <>
100100
Status ParseStringAs<bool>(const std::string& str, bool* val) {
101101
if (str == "0") {
102102
*val = false;
103-
return tensorflow::OkStatus();
103+
return absl::OkStatus();
104104
}
105105
if (str == "1") {
106106
*val = true;
107-
return tensorflow::OkStatus();
107+
return absl::OkStatus();
108108
}
109109
return errors::InvalidArgument(
110110
absl::StrCat("Failed to parse string: ", str, " as bool."));
@@ -225,7 +225,7 @@ class KeyDecoder : public KeyDecoderBase {
225225
}
226226

227227
*key_decoder = absl::WrapUnique(new KeyDecoder(keys_as_strings));
228-
return tensorflow::OkStatus();
228+
return absl::OkStatus();
229229
}
230230

231231
Status Decode(StreamingProtoReader* reader, int* value_index) const override {
@@ -239,7 +239,7 @@ class KeyDecoder : public KeyDecoderBase {
239239
} else {
240240
*value_index = it->second;
241241
}
242-
return tensorflow::OkStatus();
242+
return absl::OkStatus();
243243
}
244244

245245
private:
@@ -293,7 +293,7 @@ class ValueCollector : public ValueCollectorBase {
293293
if (!reader->ReadValue(kFieldType, &current_value_)) {
294294
return errors::DataLoss("Corrupted value field.");
295295
}
296-
return tensorflow::OkStatus();
296+
return absl::OkStatus();
297297
}
298298
void Commit(const int key_index, const int64_t parent_index) override {
299299
values_per_key_[key_index].push_back(current_value_);
@@ -393,7 +393,7 @@ class MapEntryCollector {
393393
}
394394
*map_entry_collector = absl::WrapUnique(new MapEntryCollector(
395395
keys_as_strings.size(), std::move(key_decoder), value_type));
396-
return tensorflow::OkStatus();
396+
return absl::OkStatus();
397397
}
398398

399399
~MapEntryCollector() {}
@@ -542,7 +542,7 @@ class MapEntryCollector {
542542
return errors::InvalidArgument(
543543
absl::StrCat("Unexpected map value type: ", value_type_));
544544
}
545-
return tensorflow::OkStatus();
545+
return absl::OkStatus();
546546
}
547547

548548
Status PopulateOutputTensors(const ValueCollectorBase& value_collector,
@@ -567,7 +567,7 @@ class MapEntryCollector {
567567
i, output_parent_indices_tensor);
568568
}
569569

570-
return tensorflow::OkStatus();
570+
return absl::OkStatus();
571571
}
572572

573573
const int num_keys_;

struct2tensor/kernels/decode_proto_sparse_op.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ ::tensorflow::Status ToOutputTensor(OpKernelContext* context,
100100
if (tensor_size > 0) {
101101
VectorToTensor(vec, result, produce_string_view);
102102
}
103-
return tensorflow::OkStatus();
103+
return absl::OkStatus();
104104
}
105105

106106
// Makes `value` refer to bytes for a length-delimited field in the buffer
@@ -318,7 +318,7 @@ class FieldBuilderImpl : public FieldBuilder {
318318
is_packed_primitive = true;
319319
} else if (WireFormatLite::SkipField(
320320
input, WireFormatLite::MakeTag(wire_number_, wire_type))) {
321-
return tensorflow::OkStatus();
321+
return absl::OkStatus();
322322
} else {
323323
return DataLoss("Failed skipping malformed field");
324324
}
@@ -337,7 +337,7 @@ class FieldBuilderImpl : public FieldBuilder {
337337
produce_string_view));
338338
TF_RETURN_IF_ERROR(ToOutputTensor(context, output_index_parent_index_,
339339
parent_indices_, produce_string_view));
340-
return tensorflow::OkStatus();
340+
return absl::OkStatus();
341341
}
342342

343343
void MaybePadDefaultValue(int64_t current_message_index) {
@@ -369,7 +369,7 @@ class FieldBuilderImpl : public FieldBuilder {
369369
TF_RETURN_IF_ERROR(CollectValue(input, message_index));
370370
}
371371
input->PopLimit(limit);
372-
return tensorflow::OkStatus();
372+
return absl::OkStatus();
373373
}
374374

375375
// Parses one value from `input`, then updates `values_` and
@@ -388,7 +388,7 @@ class FieldBuilderImpl : public FieldBuilder {
388388
} else {
389389
values_.back() = value;
390390
}
391-
return tensorflow::OkStatus();
391+
return absl::OkStatus();
392392
}
393393

394394
// Collected field values.
@@ -1165,7 +1165,7 @@ class DecodeProtoSparseOp : public OpKernel {
11651165
"it.");
11661166
}
11671167

1168-
return tensorflow::OkStatus();
1168+
return absl::OkStatus();
11691169
}
11701170

11711171
std::string message_type_;

struct2tensor/kernels/equi_join_any_indices_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ::tensorflow::Status ToOutputVector(OpKernelContext* context, int index,
4646
memcpy(result_flat.data(), vec.data(),
4747
tensor_size * sizeof(tensorflow::int64));
4848
}
49-
return tensorflow::OkStatus();
49+
return absl::OkStatus();
5050
}
5151

5252
} // namespace

struct2tensor/kernels/equi_join_indices_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ::tensorflow::Status ToOutputVector(OpKernelContext* context, int index,
5050
memcpy(result_flat.data(), vec.data(),
5151
tensor_size * sizeof(tensorflow::int64));
5252
}
53-
return tensorflow::OkStatus();
53+
return absl::OkStatus();
5454
}
5555

5656
} // namespace

0 commit comments

Comments
 (0)