TensorFlow: Fix scatter_op_test now that StringPiece::contains is fixed.
Change: 115580211
This commit is contained in:
parent
d1aed6505a
commit
86e93febaa
@ -113,8 +113,8 @@ TEST_F(GatherOpTest, Error_IndexOutOfRange) {
|
|||||||
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14});
|
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14});
|
||||||
AddInputFromArray<int32>(TensorShape({4}), {0, 4, 99, 2});
|
AddInputFromArray<int32>(TensorShape({4}), {0, 4, 99, 2});
|
||||||
Status s = RunOpKernel();
|
Status s = RunOpKernel();
|
||||||
EXPECT_TRUE(StringPiece(s.ToString())
|
EXPECT_TRUE(
|
||||||
.contains("Index 99 at offset 2 in Tindices is out of range"))
|
StringPiece(s.ToString()).contains("indices[2] = 99 is not in [0, 5)"))
|
||||||
<< s;
|
<< s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,8 +170,8 @@ TEST_F(ScatterUpdateOpTest, Error_IndexOutOfRange) {
|
|||||||
AddInputFromArray<float>(TensorShape({3, 3}),
|
AddInputFromArray<float>(TensorShape({3, 3}),
|
||||||
{100, 101, 102, 777, 778, 779, 10000, 10001, 10002});
|
{100, 101, 102, 777, 778, 779, 10000, 10001, 10002});
|
||||||
Status s = RunOpKernel();
|
Status s = RunOpKernel();
|
||||||
EXPECT_TRUE(StringPiece(s.ToString())
|
EXPECT_TRUE(
|
||||||
.contains("Index 99 at offset 2 in indices is out of range"))
|
StringPiece(s.ToString()).contains("indices[2] = 99 is not in [0, 5)"))
|
||||||
<< s;
|
<< s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user