aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Bottini <manuel.bottini@arm.com>2020-10-05 10:37:02 +0100
committerManuel Bottini <manuel.bottini@arm.com>2020-10-05 13:02:48 +0000
commit47ae441b320c0a9f79f8e6036a0b12a1bf68f9ca (patch)
tree2a0c79d6b8c7f6abd5eeb3f89e425934502024ef
parent552e11dbfa03c5f3a86911c2941e545294be94ac (diff)
downloadComputeLibrary-47ae441b320c0a9f79f8e6036a0b12a1bf68f9ca.tar.gz
COMPMID-3816: Nightly failure: neon_scale example and benchmark
Change-Id: I225b3f9b170959ad8c8a462cb42668671b1577e9 Signed-off-by: Manuel Bottini <manuel.bottini@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4080 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--examples/neon_scale.cpp8
-rw-r--r--tests/benchmark/fixtures/ScaleFixture.h2
2 files changed, 8 insertions, 2 deletions
diff --git a/examples/neon_scale.cpp b/examples/neon_scale.cpp
index ac9d0620ea..f120ea7f96 100644
--- a/examples/neon_scale.cpp
+++ b/examples/neon_scale.cpp
@@ -60,7 +60,13 @@ public:
dst.allocator()->init(dst_tensor_info);
// Configure Scale function object:
- scale.configure(&src, &dst, ScaleKernelInfo{ InterpolationPolicy::NEAREST_NEIGHBOR, BorderMode::UNDEFINED });
+ scale.configure(&src, &dst, ScaleKernelInfo{
+ InterpolationPolicy::NEAREST_NEIGHBOR,
+ BorderMode::UNDEFINED,
+ PixelValue(),
+ SamplingPolicy::CENTER,
+ false
+ });
// Allocate all the images
src.allocator()->allocate();
diff --git a/tests/benchmark/fixtures/ScaleFixture.h b/tests/benchmark/fixtures/ScaleFixture.h
index 1fea66fbe2..953872ea64 100644
--- a/tests/benchmark/fixtures/ScaleFixture.h
+++ b/tests/benchmark/fixtures/ScaleFixture.h
@@ -75,7 +75,7 @@ public:
dst = create_tensor<TensorType>(shape_scaled, data_type);
// Create and configure function
- scale_func.configure(&src, &dst, ScaleKernelInfo{ policy, border_mode, constant_border_value, sampling_policy });
+ scale_func.configure(&src, &dst, ScaleKernelInfo{ policy, border_mode, constant_border_value, sampling_policy, false });
// Allocate tensors
src.allocator()->allocate();