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:
parent
29bc2e98ea
commit
6af0243ba6
@ -206,7 +206,7 @@ struct Expector<T, true> {
|
|||||||
const T* b = y.flat<T>().data();
|
const T* b = y.flat<T>().data();
|
||||||
for (int i = 0; i < size; ++i) {
|
for (int i = 0; i < size; ++i) {
|
||||||
EXPECT_TRUE(Near(a[i], b[i], abs_err))
|
EXPECT_TRUE(Near(a[i], b[i], abs_err))
|
||||||
<< "a = " << a[i] << " b = " << b << " index = " << i;
|
<< "a = " << a[i] << " b = " << b[i] << " index = " << i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user