Fix a typo in Near. Before this change, when the values are not 'Near', the program reports the address of b instead of the value of b[i].

PiperOrigin-RevId: 227595818
This commit is contained in:
Penporn Koanantakool 2019-01-02 15:52:17 -08:00 committed by TensorFlower Gardener
parent 29bc2e98ea
commit 6af0243ba6

View File

@ -206,7 +206,7 @@ struct Expector<T, true> {
const T* b = y.flat<T>().data();
for (int i = 0; i < size; ++i) {
EXPECT_TRUE(Near(a[i], b[i], abs_err))
<< "a = " << a[i] << " b = " << b << " index = " << i;
<< "a = " << a[i] << " b = " << b[i] << " index = " << i;
}
}
};