aboutsummaryrefslogtreecommitdiff
path: root/tests/SimpleTensor.h
diff options
context:
space:
mode:
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());