aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Gmc2 <maozhou.ge@intel.com>2021-01-25 03:23:46 +0000
committerGravatar Antonio Sánchez <cantonios@google.com>2021-01-25 03:23:46 +0000
commita4edb1079c97a09a5733bc96b4b9ac1e2c6d8038 (patch)
tree6e6f173eb3db7d91671926161ce077a0cf6151c3 /unsupported
parent4c42d5ee4191215703499f7d21bf928c88c6ec75 (diff)
fix test of ExtractVolumePatchesOp
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/test/cxx11_tensor_volume_patch.cpp6
-rw-r--r--unsupported/test/cxx11_tensor_volume_patch_sycl.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/unsupported/test/cxx11_tensor_volume_patch.cpp b/unsupported/test/cxx11_tensor_volume_patch.cpp
index 3aa363eb5..862212e82 100644
--- a/unsupported/test/cxx11_tensor_volume_patch.cpp
+++ b/unsupported/test/cxx11_tensor_volume_patch.cpp
@@ -70,9 +70,9 @@ static void test_entire_volume_patch()
const int dy = patch_y - 1;
const int dx = patch_x - 1;
- const int forward_pad_z = dz - dz / 2;
- const int forward_pad_y = dy - dy / 2;
- const int forward_pad_x = dx - dx / 2;
+ const int forward_pad_z = dz / 2;
+ const int forward_pad_y = dy / 2;
+ const int forward_pad_x = dx / 2;
for (int pz = 0; pz < patch_z; pz++) {
for (int py = 0; py < patch_y; py++) {
diff --git a/unsupported/test/cxx11_tensor_volume_patch_sycl.cpp b/unsupported/test/cxx11_tensor_volume_patch_sycl.cpp
index ca7994fd9..8d99a48ed 100644
--- a/unsupported/test/cxx11_tensor_volume_patch_sycl.cpp
+++ b/unsupported/test/cxx11_tensor_volume_patch_sycl.cpp
@@ -166,9 +166,9 @@ static void test_entire_volume_patch_sycl(const Eigen::SyclDevice& sycl_device)
const int dy = patch_y - 1;
const int dx = patch_x - 1;
- const int forward_pad_z = dz - dz / 2;
- const int forward_pad_y = dy - dy / 2;
- const int forward_pad_x = dx - dx / 2;
+ const int forward_pad_z = dz / 2;
+ const int forward_pad_y = dy / 2;
+ const int forward_pad_x = dx / 2;
for (int pz = 0; pz < patch_z; pz++) {
for (int py = 0; py < patch_y; py++) {