aboutsummaryrefslogtreecommitdiff
path: root/src/armnnUtils/DataLayoutIndexed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnnUtils/DataLayoutIndexed.cpp')
-rw-r--r--src/armnnUtils/DataLayoutIndexed.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/armnnUtils/DataLayoutIndexed.cpp b/src/armnnUtils/DataLayoutIndexed.cpp
index 18c005a7c3..c1c98fc0fd 100644
--- a/src/armnnUtils/DataLayoutIndexed.cpp
+++ b/src/armnnUtils/DataLayoutIndexed.cpp
@@ -25,6 +25,12 @@ DataLayoutIndexed::DataLayoutIndexed(armnn::DataLayout dataLayout)
m_HeightIndex = 2;
m_WidthIndex = 3;
break;
+ case armnn::DataLayout::NDHWC:
+ m_DepthIndex = 1;
+ m_HeightIndex = 2;
+ m_WidthIndex = 3;
+ m_ChannelsIndex = 4;
+ break;
default:
throw armnn::InvalidArgumentException("Unknown DataLayout value: " +
std::to_string(static_cast<int>(dataLayout)));