aboutsummaryrefslogtreecommitdiff
path: root/tests/SimpleTensor.h
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2018-04-30 17:29:41 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:51:17 +0000
commit563494c2f447e201e88e6d7133a41e12971777eb (patch)
tree716ae5e4978ce378ad14f53591087a7a42f6fe58 /tests/SimpleTensor.h
parentb7f5d172ccdb1d884388dd6e0e54f74241afca67 (diff)
downloadComputeLibrary-563494c2f447e201e88e6d7133a41e12971777eb.tar.gz
COMPMID-1084 Rework the way validation is performed for NHWC data layout
Change-Id: I00b95f560548da76718298b642c8166f92421097 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/129520 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/SimpleTensor.h')
-rw-r--r--tests/SimpleTensor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/SimpleTensor.h b/tests/SimpleTensor.h
index cfd13832fb..8b3b37010e 100644
--- a/tests/SimpleTensor.h
+++ b/tests/SimpleTensor.h
@@ -235,7 +235,8 @@ SimpleTensor<T>::SimpleTensor(TensorShape shape, Format format, int fixed_point_
_shape(shape),
_format(format),
_fixed_point_position(fixed_point_position),
- _quantization_info()
+ _quantization_info(),
+ _data_layout(DataLayout::NCHW)
{
_num_channels = num_channels();
_buffer = support::cpp14::make_unique<T[]>(num_elements() * _num_channels);
@@ -262,7 +263,8 @@ SimpleTensor<T>::SimpleTensor(const SimpleTensor &tensor)
_data_type(tensor.data_type()),
_num_channels(tensor.num_channels()),
_fixed_point_position(tensor.fixed_point_position()),
- _quantization_info(tensor.quantization_info())
+ _quantization_info(tensor.quantization_info()),
+ _data_layout(tensor.data_layout())
{
_buffer = support::cpp14::make_unique<T[]>(tensor.num_elements() * num_channels());
std::copy_n(tensor.data(), num_elements() * num_channels(), _buffer.get());