Correction in validation func in CL Host files (#4139)
authorShubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 <shub98.gupta@samsung.com>
Wed, 9 Jan 2019 00:51:25 +0000 (06:21 +0530)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 9 Jan 2019 00:51:25 +0000 (09:51 +0900)
commit53ffcab088306df35e7d179902c921d4b827a742
tree8a4f990ccd34fdcaf34ca214f4cbec29dcb0fc59
parent1561b7b4fd8ca7264d624aa88eddd7fd6113dfb3
Correction in validation func in CL Host files (#4139)

Since ARM_COMPUTE_RETURN_ERROR_ON_MSG() is an "ERROR_ON" macro,
which means an error will be thrown if the expression evaluates to "true"
Hence, checks need to be inverted.
This patch will correct the checks in th following files:

1. CLBatchToSpaceNDKernel.cpp
2. CLDepthToSpaceKernel.cpp
3. CLPadLayerKernel.cpp
4. CLReduceOperationKernel.cpp
5. CLSpaceToDepthKernel.cpp

Signed-off-by: shubham <shub98.gupta@samsung.com>
libs/ARMComputeEx/src/core/CL/kernels/CLBatchToSpaceNDKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLDepthToSpaceKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLPadLayerKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLReduceOperationKernel.cpp
libs/ARMComputeEx/src/core/CL/kernels/CLSpaceToDepthKernel.cpp