aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/tests/compute_constant_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/tests/compute_constant_test.cc')
-rw-r--r--tensorflow/compiler/xla/tests/compute_constant_test.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tensorflow/compiler/xla/tests/compute_constant_test.cc b/tensorflow/compiler/xla/tests/compute_constant_test.cc
index bf4b8fb0bc..ba22530f1c 100644
--- a/tensorflow/compiler/xla/tests/compute_constant_test.cc
+++ b/tensorflow/compiler/xla/tests/compute_constant_test.cc
@@ -208,7 +208,7 @@ TEST_F(ComputeConstantTest, NonScalarAdd) {
ComputeConstantLiteral(client, computation, &b));
std::unique_ptr<Literal> expected_literal =
Literal::CreateR1<int32>({4, 6});
- LiteralTestUtil::ExpectEqual(*expected_literal, *computed);
+ EXPECT_TRUE(LiteralTestUtil::Equal(*expected_literal, *computed));
}
}
@@ -222,7 +222,7 @@ TEST_F(ComputeConstantTest, IntegerDivide) {
TF_ASSERT_OK_AND_ASSIGN(auto computed,
ComputeConstantLiteral(client, computation, &b));
std::unique_ptr<Literal> expected_literal = Literal::CreateR0<int32>(5);
- LiteralTestUtil::ExpectEqual(*expected_literal, *computed);
+ EXPECT_TRUE(LiteralTestUtil::Equal(*expected_literal, *computed));
}
}
@@ -244,9 +244,9 @@ XLA_TEST_F(ComputeConstantTest, Layout) {
std::unique_ptr<Literal> expected_literal =
Literal::CreateR2WithLayout<int32>({{11, 22}, {33, 44}},
LayoutUtil::MakeLayout(layout));
- LiteralTestUtil::AssertEqualShapesAndLayouts(expected_literal->shape(),
- computed->shape());
- LiteralTestUtil::ExpectEqual(*expected_literal, *computed);
+ ASSERT_TRUE(LiteralTestUtil::EqualShapesAndLayouts(
+ expected_literal->shape(), computed->shape()));
+ EXPECT_TRUE(LiteralTestUtil::Equal(*expected_literal, *computed));
}
}
}