aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-27 09:11:40 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-27 09:11:40 -0700
commit01f409400aeee23168a2b1cd8c295d574a1a7cea (patch)
treea67b5eb437fbc42ef590d51da24fbe63f68d9f49
parent953fffccf8e91d5e4a49139359c46ad5141e5df7 (diff)
parent6fa928715865eceda6f16db6f6b43e2a40d39b64 (diff)
Merge pull request #20744 from npanpaliya:resize_bilinear_test-fix-ppc64le-20361
PiperOrigin-RevId: 206325357
-rw-r--r--tensorflow/contrib/lite/kernels/resize_bilinear_test.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/tensorflow/contrib/lite/kernels/resize_bilinear_test.cc b/tensorflow/contrib/lite/kernels/resize_bilinear_test.cc
index 10caffea03..f4289105f7 100644
--- a/tensorflow/contrib/lite/kernels/resize_bilinear_test.cc
+++ b/tensorflow/contrib/lite/kernels/resize_bilinear_test.cc
@@ -247,7 +247,7 @@ TEST(ResizeBilinearOpTest, TwoDimensionalResizeWithTwoBatches8Bit) {
3, 6, //
9, 12, //
4, 10, //
- 10, 16 //
+ 12, 16 //
});
m.SetSize({3, 3});
m.Invoke();
@@ -256,8 +256,8 @@ TEST(ResizeBilinearOpTest, TwoDimensionalResizeWithTwoBatches8Bit) {
7, 9, 10, //
9, 11, 12, //
4, 8, 10, //
- 8, 12, 14, //
- 10, 13, 16, //
+ 9, 12, 14, //
+ 12, 14, 16, //
})));
ResizeBilinearOpModel const_m({TensorType_UINT8, {2, 2, 2, 1}}, {3, 3});
@@ -265,7 +265,7 @@ TEST(ResizeBilinearOpTest, TwoDimensionalResizeWithTwoBatches8Bit) {
3, 6, //
9, 12, //
4, 10, //
- 10, 16 //
+ 12, 16 //
});
const_m.Invoke();
EXPECT_THAT(const_m.GetOutput<uint8>(), ElementsAreArray(ArrayFloatNear({
@@ -273,35 +273,35 @@ TEST(ResizeBilinearOpTest, TwoDimensionalResizeWithTwoBatches8Bit) {
7, 9, 10, //
9, 11, 12, //
4, 8, 10, //
- 8, 12, 14, //
- 10, 13, 16, //
+ 9, 12, 14, //
+ 12, 14, 16, //
})));
}
TEST(ResizeBilinearOpTest, ThreeDimensionalResize8Bit) {
ResizeBilinearOpModel m({TensorType_UINT8, {1, 2, 2, 2}});
m.SetInput<uint8>({
- 3, 4, 6, 10, //
- 9, 10, 12, 16, //
+ 3, 4, 6, 10, //
+ 10, 12, 14, 16, //
});
m.SetSize({3, 3});
m.Invoke();
EXPECT_THAT(m.GetOutput<uint8>(), ElementsAreArray(ArrayFloatNear({
- 3, 4, 5, 8, 6, 10, //
- 7, 8, 9, 12, 10, 14, //
- 9, 10, 11, 13, 12, 16, //
+ 3, 4, 5, 8, 6, 10, //
+ 7, 9, 10, 12, 11, 14, //
+ 10, 12, 12, 14, 14, 16, //
})));
ResizeBilinearOpModel const_m({TensorType_UINT8, {1, 2, 2, 2}}, {3, 3});
const_m.SetInput<uint8>({
- 3, 4, 6, 10, //
- 9, 10, 12, 16, //
+ 3, 4, 6, 10, //
+ 10, 12, 14, 16, //
});
const_m.Invoke();
EXPECT_THAT(const_m.GetOutput<uint8>(), ElementsAreArray(ArrayFloatNear({
- 3, 4, 5, 8, 6, 10, //
- 7, 8, 9, 12, 10, 14, //
- 9, 10, 11, 13, 12, 16, //
+ 3, 4, 5, 8, 6, 10, //
+ 7, 9, 10, 12, 11, 14, //
+ 10, 12, 12, 14, 14, 16, //
})));
}
} // namespace