diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-02-14 19:23:44 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:47:18 +0000 |
commit | 69af6cf5ec6edce564dd5ef97baba5a1325e8763 (patch) | |
tree | c8f82cb0f5258b1f2a004631d7fa78b49b34231d /src/core/NEON | |
parent | b99f00d44b8962c40f1de955831f8b04c15e7386 (diff) | |
download | ComputeLibrary-69af6cf5ec6edce564dd5ef97baba5a1325e8763.tar.gz |
COMPMID-765: Sanitize permutation vector for Permute.
If permutation vector is bigger than the tensorshape to permute then
infer dimensions of size one for the extra dimensions.
Change-Id: I5addb292f770d925f47f756902e16073039e8f71
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/120473
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Stefana Simion <stefana.simion@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/core/NEON')
-rw-r--r-- | src/core/NEON/kernels/NEPermuteKernel.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/NEON/kernels/NEPermuteKernel.cpp b/src/core/NEON/kernels/NEPermuteKernel.cpp index f5f276f1cc..87e5e7487a 100644 --- a/src/core/NEON/kernels/NEPermuteKernel.cpp +++ b/src/core/NEON/kernels/NEPermuteKernel.cpp @@ -49,7 +49,6 @@ Status validate_arguments(const ITensorInfo *input, const ITensorInfo *output, c DataType::U16, DataType::S16, DataType::QS16, DataType::U32, DataType::S32, DataType::F16, DataType::F32); - ARM_COMPUTE_RETURN_ERROR_ON_MSG(input->num_dimensions() < 3, "Invalid input size!"); ARM_COMPUTE_RETURN_ERROR_ON_MSG( (perm.num_dimensions() != 3 && ((perm[0] != 2 && perm[1] != 0 && perm[2] != 1) || (perm[0] != 1 && perm[1] != 2 && perm[2] != 0))), "Only [2, 0, 1] and [1, 2, 0] permutation is supported"); |