From 6af0243ba6842330d7bcce6499287f6e9a640c9f Mon Sep 17 00:00:00 2001 From: Penporn Koanantakool Date: Wed, 2 Jan 2019 15:52:17 -0800 Subject: [PATCH] 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 --- tensorflow/core/framework/tensor_testutil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/framework/tensor_testutil.h b/tensorflow/core/framework/tensor_testutil.h index 31630028516..b58292b3b02 100644 --- a/tensorflow/core/framework/tensor_testutil.h +++ b/tensorflow/core/framework/tensor_testutil.h @@ -206,7 +206,7 @@ struct Expector { const T* b = y.flat().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; } } };