aboutsummaryrefslogtreecommitdiff
path: root/tests/SimpleTensor.h
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-02-19 19:36:02 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:47:18 +0000
commit1fbb8120aa4f5ea2e73393421611ffea803a05b4 (patch)
tree87d2d8e7cf220bbcf04b7ceecd9d826bade6acdf /tests/SimpleTensor.h
parent562fe0fcedace39735ead089cfdc4e2b07e40aad (diff)
downloadComputeLibrary-1fbb8120aa4f5ea2e73393421611ffea803a05b4.tar.gz
Revert "COMPMID-582: Add validation to channel_extract kernels."
This reverts commit 9a0875951d43dda035f32d2e0728cf59d80cb4d3. Change-Id: I6af0bc64c656f91cf1e0357f8760defa08f2e78d Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/121190 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/SimpleTensor.h')
-rw-r--r--tests/SimpleTensor.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/tests/SimpleTensor.h b/tests/SimpleTensor.h
index f3155ffeab..3dbb4862f8 100644
--- a/tests/SimpleTensor.h
+++ b/tests/SimpleTensor.h
@@ -297,33 +297,18 @@ int SimpleTensor<T>::num_channels() const
switch(_format)
{
case Format::U8:
- case Format::U16:
case Format::S16:
- case Format::U32:
+ case Format::U16:
case Format::S32:
- case Format::F16:
+ case Format::U32:
case Format::F32:
return 1;
- // Because the U and V channels are subsampled
- // these formats appear like having only 2 channels:
- case Format::YUYV422:
- case Format::UYVY422:
- return 2;
- case Format::UV88:
- return 2;
case Format::RGB888:
return 3;
- case Format::RGBA8888:
- return 4;
case Format::UNKNOWN:
return _num_channels;
- //Doesn't make sense for planar formats:
- case Format::NV12:
- case Format::NV21:
- case Format::IYUV:
- case Format::YUV444:
default:
- return 0;
+ ARM_COMPUTE_ERROR("NOT SUPPORTED!");
}
}