COMPMID-959: Set output valid region to CLPermuteKernel.
Change-Id: Ieb62347c71cef5ac8941e632c8afa678f5db6f21
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/124813
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
diff --git a/src/core/CL/kernels/CLPermuteKernel.cpp b/src/core/CL/kernels/CLPermuteKernel.cpp
index da34448..02fc667 100644
--- a/src/core/CL/kernels/CLPermuteKernel.cpp
+++ b/src/core/CL/kernels/CLPermuteKernel.cpp
@@ -114,6 +114,11 @@
// Configure kernel window
Window win = calculate_max_window(*input->info(), Steps());
+ // The CLPermute doesn't need padding so update_window_and_padding() can be skipped
+ Coordinates coord;
+ coord.set_num_dimensions(output->info()->num_dimensions());
+ output->info()->set_valid_region(ValidRegion(coord, output->info()->tensor_shape()));
+
ICLKernel::configure(win);
}