aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/TensorHelpers.hpp
diff options
context:
space:
mode:
authorMatthew Bentham <matthew.bentham@arm.com>2018-11-19 13:19:28 +0000
committerMatteo Martincigh <matteo.martincigh@arm.com>2018-11-19 16:14:07 +0000
commit8800c00770ed14eb48045cfcf033d6b67595a126 (patch)
tree3bdbd3a97bfc21276a98a14aeae3e878c96c3121 /src/armnn/test/TensorHelpers.hpp
parent5cdda351b4e12c5299173ec6b0fc75a948bdcda0 (diff)
downloadarmnn-8800c00770ed14eb48045cfcf033d6b67595a126.tar.gz
IVGCVSW-2169 Remove DataLayoutIndexed from public API
Change-Id: If8d8087d9d365e467d3ca9bf9c40d7219cb75cfd
Diffstat (limited to 'src/armnn/test/TensorHelpers.hpp')
-rw-r--r--src/armnn/test/TensorHelpers.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/armnn/test/TensorHelpers.hpp b/src/armnn/test/TensorHelpers.hpp
index 4501c3532c..238232ae96 100644
--- a/src/armnn/test/TensorHelpers.hpp
+++ b/src/armnn/test/TensorHelpers.hpp
@@ -216,9 +216,9 @@ armnn::TensorInfo GetTensorInfo(unsigned int numberOfBatches,
unsigned int numberOfChannels,
unsigned int height,
unsigned int width,
- const armnn::DataLayoutIndexed& dataLayout)
+ const armnn::DataLayout dataLayout)
{
- switch (dataLayout.GetDataLayout())
+ switch (dataLayout)
{
case armnn::DataLayout::NCHW:
return armnn::TensorInfo({numberOfBatches, numberOfChannels, height, width}, armnn::GetDataType<T>());
@@ -226,6 +226,6 @@ armnn::TensorInfo GetTensorInfo(unsigned int numberOfBatches,
return armnn::TensorInfo({numberOfBatches, height, width, numberOfChannels}, armnn::GetDataType<T>());
default:
throw armnn::InvalidArgumentException("unknown data layout ["
- + std::to_string(static_cast<int>(dataLayout.GetDataLayout())) + "]");
+ + std::to_string(static_cast<int>(dataLayout)) + "]");
}
}