diff options
author | Pablo Tello <pablo.tello@arm.com> | 2017-12-15 09:48:59 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:42:33 +0000 |
commit | 02541fb21eca5574fcce012973774a6f213877ee (patch) | |
tree | fb3b2652cfab65119f9814f4167a10b030e5f307 /arm_compute/runtime | |
parent | d064389293e4a71781984b2b24f3d44964812949 (diff) | |
download | ComputeLibrary-02541fb21eca5574fcce012973774a6f213877ee.tar.gz |
COMPMID-719: NEWinogradLayer reordering using NEPermute.
Input reordering from NCHW to NHWC
Output reordering from NHWC to NCHW
Weights reordering from [Ofm x Ifm x Height x Width] to [Height x Width x Ifm x Ofm]
Change-Id: I85aabedb1f9c13700bc4919eb3130f4d4bd0b465
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/113631
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/runtime')
-rw-r--r-- | arm_compute/runtime/NEON/functions/NEWinogradLayer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arm_compute/runtime/NEON/functions/NEWinogradLayer.h b/arm_compute/runtime/NEON/functions/NEWinogradLayer.h index 77707060ec..6fecf082a2 100644 --- a/arm_compute/runtime/NEON/functions/NEWinogradLayer.h +++ b/arm_compute/runtime/NEON/functions/NEWinogradLayer.h @@ -28,6 +28,7 @@ #include "arm_compute/core/NEON/kernels/NEWinogradLayerKernel.h" #include "arm_compute/core/Types.h" +#include "arm_compute/runtime/CPP/functions/CPPPermute.h" #include "arm_compute/runtime/MemoryGroup.h" #include "arm_compute/runtime/Tensor.h" @@ -69,9 +70,14 @@ public: private: MemoryGroup _memory_group; NEWinogradLayerKernel _winograd_kernel; - Tensor _weights_workspace; + CPPPermute _permute_input; + CPPPermute _permute_weights; + CPPPermute _permute_output; Tensor _workspace; Tensor _kernel_storage; + Tensor _input_nhwc; + Tensor _output_nhwc; + Tensor _weights_hwio; const ITensor *_input; const ITensor *_weights; ITensor *_output; |