Skip to content

Commit dbc42db

Browse files
jblespiautensorflow-copybara
authored andcommitted
Replace tensorflow::Status::OK() with tensorflow::OkStatus().
PiperOrigin-RevId: 473798088
1 parent 1e97613 commit dbc42db

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

research/carls/base/status_helper_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ TEST(ProtoFactoryTest, ToAbslStatus_Grpc) {
4141
}
4242

4343
TEST(ProtoFactoryTest, ToAbslStatus_TensorFlow) {
44-
EXPECT_EQ(absl::OkStatus(), carls::ToAbslStatus(tensorflow::Status::OK()));
44+
EXPECT_EQ(absl::OkStatus(), carls::ToAbslStatus(tensorflow::OkStatus()));
4545

4646
auto tf_status =
4747
tensorflow::Status(tensorflow::error::INVALID_ARGUMENT, "Error.");

research/carls/kernels/dynamic_embedding_manager_resource.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class DynamicEmbeddingManagerResourceOp
9595
return Status(tensorflow::error::FAILED_PRECONDITION,
9696
"DynamicEmbeddingManager is NULL.");
9797
}
98-
return Status::OK();
98+
return tensorflow::OkStatus();
9999
}
100100

101101
DynamicEmbeddingConfig config_;

research/carls/kernels/dynamic_embedding_ops.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Status SetInputShape(InferenceContext* c) {
6464
DimensionOrConstant(embedding_dimension));
6565
c->set_output(0, output_shape);
6666
}
67-
return Status::OK();
67+
return tensorflow::OkStatus();
6868
}
6969

7070
} // namespace

research/carls/kernels/dynamic_memory_ops.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ REGISTER_OP("DynamicGaussianMemoryLookup")
5656
}
5757
c->set_output(2, c->MakeShape(dims));
5858
}
59-
return Status::OK();
59+
return tensorflow::OkStatus();
6060
})
6161
.Doc(R"doc(
6262
A Gaussian memory assumes the input pattern can be represented by a number of

research/carls/testing/test_helper_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ TEST(TestHelperTest, GrpcStatusChecks) {
5858
}
5959

6060
TEST(TestHelperTest, TensoFlowStatusChecks) {
61-
EXPECT_OK(tensorflow::Status::OK());
61+
EXPECT_OK(tensorflow::OkStatus());
6262
EXPECT_NOT_OK(
6363
tensorflow::Status(tensorflow::error::INVALID_ARGUMENT, "First error."));
6464
EXPECT_ERROR_EQ(
6565
tensorflow::Status(tensorflow::error::INVALID_ARGUMENT, "First error."),
6666
"First error.");
67-
ASSERT_OK(tensorflow::Status::OK());
67+
ASSERT_OK(tensorflow::OkStatus());
6868
ASSERT_ERROR_EQ(
6969
tensorflow::Status(tensorflow::error::INVALID_ARGUMENT, "Second error."),
7070
"Second error.");

0 commit comments

Comments
 (0)