diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2018-05-16 00:02:35 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:52:35 +0000 |
commit | efac7c63c045ea8fec17df54231f0d44611c7c78 (patch) | |
tree | 74a7d16ae519a4449ebf9757199b1d5682afd0c8 /tests/validation/reference | |
parent | b5cc95bac9e3253214c56009b60a22f7e7485758 (diff) | |
download | ComputeLibrary-efac7c63c045ea8fec17df54231f0d44611c7c78.tar.gz |
COMPMID-959: Fix CLChannelShuffle
Change-Id: I1ea4db4e1ba37a736445ba991eeb08c247a6a61e
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/131393
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/reference')
-rw-r--r-- | tests/validation/reference/ChannelShuffle.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/validation/reference/ChannelShuffle.cpp b/tests/validation/reference/ChannelShuffle.cpp index 790eff53a0..c4d8d50e3d 100644 --- a/tests/validation/reference/ChannelShuffle.cpp +++ b/tests/validation/reference/ChannelShuffle.cpp @@ -57,13 +57,13 @@ SimpleTensor<T> channel_shuffle(const SimpleTensor<T> &src, int num_groups) { // Gather the group g block (of size channels_in_group * MxN) from output channels // g + 0 * G, g + 1 * G, g + 2 * G, g + G * (K - 1) etc. - const T *src_ptr = src_ref + g * MxN + n * num_channels * MxN; - T *dst_ptr = dst_ref + g * channels_in_group * MxN + n * num_channels * MxN; + const T *src_ptr = src_ref + g * channels_in_group * MxN + n * num_channels * MxN; + T *dst_ptr = dst_ref + g * MxN + n * num_channels * MxN; for(int i = 0; i < channels_in_group; ++i) { - std::copy(src_ptr + i * num_groups * MxN, - src_ptr + (i * num_groups + 1) * MxN, - dst_ptr + i * MxN); + std::copy(src_ptr + i * MxN, + src_ptr + (i + 1) * MxN, + dst_ptr + i * num_groups * MxN); } } } |