aboutsummaryrefslogtreecommitdiff
path: root/tests/RawTensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/RawTensor.cpp')
-rw-r--r--tests/RawTensor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/RawTensor.cpp b/tests/RawTensor.cpp
index ce2510fe95..8d610a4969 100644
--- a/tests/RawTensor.cpp
+++ b/tests/RawTensor.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2018 ARM Limited.
+ * Copyright (c) 2017-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -30,20 +30,20 @@ namespace test
RawTensor::RawTensor(TensorShape shape, Format format)
: SimpleTensor(shape, format)
{
- _buffer = support::cpp14::make_unique<uint8_t[]>(SimpleTensor::num_elements() * SimpleTensor::num_channels() * SimpleTensor::element_size());
+ _buffer = std::make_unique<uint8_t[]>(SimpleTensor::num_elements() * SimpleTensor::num_channels() * SimpleTensor::element_size());
}
RawTensor::RawTensor(TensorShape shape, DataType data_type, int num_channels)
: SimpleTensor(shape, data_type, num_channels)
{
- _buffer = support::cpp14::make_unique<uint8_t[]>(SimpleTensor::num_elements() * SimpleTensor::num_channels() * SimpleTensor::element_size());
+ _buffer = std::make_unique<uint8_t[]>(SimpleTensor::num_elements() * SimpleTensor::num_channels() * SimpleTensor::element_size());
}
RawTensor::RawTensor(const RawTensor &tensor)
: SimpleTensor(tensor.shape(), tensor.data_type(), tensor.num_channels())
{
_format = tensor.format();
- _buffer = support::cpp14::make_unique<uint8_t[]>(num_elements() * num_channels() * element_size());
+ _buffer = std::make_unique<uint8_t[]>(num_elements() * num_channels() * element_size());
std::copy_n(tensor.data(), num_elements() * num_channels() * element_size(), _buffer.get());
}