X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcore%2FNEON%2Fkernels%2FNEMagnitudePhaseKernel.cpp;h=a874d219d765c5bb024c50561ccabddf378d4b83;hb=a437638028c216a03572593b9d4e3532df2a308d;hp=7336f5dc4bc48705f0a083b5d3f5cebda9d8ed7d;hpb=68a98dc29106a4c8c34e8cac542fe0bdad4ad531;p=platform%2Fupstream%2Farmcl.git diff --git a/src/core/NEON/kernels/NEMagnitudePhaseKernel.cpp b/src/core/NEON/kernels/NEMagnitudePhaseKernel.cpp index 7336f5d..a874d21 100644 --- a/src/core/NEON/kernels/NEMagnitudePhaseKernel.cpp +++ b/src/core/NEON/kernels/NEMagnitudePhaseKernel.cpp @@ -300,16 +300,16 @@ void NEMagnitudePhaseFP16Kernel::configure(const ITensor * ARM_COMPUTE_ERROR("At least one output must be NOT NULL"); } - const unsigned int processed_elements = 16; + const unsigned int num_elems_processed_per_iteration = 16; // Configure kernel window - Window win = calculate_max_window(*gx->info(), Steps(processed_elements)); - AccessWindowHorizontal magnitude_access(magnitude == nullptr ? nullptr : magnitude->info(), 0, processed_elements); - AccessWindowHorizontal phase_access(phase == nullptr ? nullptr : phase->info(), 0, processed_elements); + Window win = calculate_max_window(*gx->info(), Steps(num_elems_processed_per_iteration)); + AccessWindowHorizontal magnitude_access(magnitude == nullptr ? nullptr : magnitude->info(), 0, num_elems_processed_per_iteration); + AccessWindowHorizontal phase_access(phase == nullptr ? nullptr : phase->info(), 0, num_elems_processed_per_iteration); update_window_and_padding(win, - AccessWindowHorizontal(gx->info(), 0, processed_elements), - AccessWindowHorizontal(gy->info(), 0, processed_elements), + AccessWindowHorizontal(gx->info(), 0, num_elems_processed_per_iteration), + AccessWindowHorizontal(gy->info(), 0, num_elems_processed_per_iteration), magnitude_access, phase_access); @@ -676,16 +676,16 @@ void NEMagnitudePhaseKernel::configure(const ITensor *gx, } } - const unsigned int processed_elements = 16; + constexpr unsigned int num_elems_processed_per_iteration = 16; // Configure kernel window - Window win = calculate_max_window(*gx->info(), Steps(processed_elements)); - AccessWindowHorizontal magnitude_access(magnitude == nullptr ? nullptr : magnitude->info(), 0, processed_elements); - AccessWindowHorizontal phase_access(phase == nullptr ? nullptr : phase->info(), 0, processed_elements); + Window win = calculate_max_window(*gx->info(), Steps(num_elems_processed_per_iteration)); + AccessWindowHorizontal magnitude_access(magnitude == nullptr ? nullptr : magnitude->info(), 0, num_elems_processed_per_iteration); + AccessWindowHorizontal phase_access(phase == nullptr ? nullptr : phase->info(), 0, num_elems_processed_per_iteration); update_window_and_padding(win, - AccessWindowHorizontal(gx->info(), 0, processed_elements), - AccessWindowHorizontal(gy->info(), 0, processed_elements), + AccessWindowHorizontal(gx->info(), 0, num_elems_processed_per_iteration), + AccessWindowHorizontal(gy->info(), 0, num_elems_processed_per_iteration), magnitude_access, phase_access);