29 unsigned int batchIndex,
unsigned int channelIndex,
30 unsigned int heightIndex,
unsigned int widthIndex)
const
32 ARMNN_ASSERT( batchIndex < shape[0] || ( shape[0] == 0 && batchIndex == 0 ) );
34 ( shape[m_ChannelsIndex] == 0 && channelIndex == 0) );
36 ( shape[m_HeightIndex] == 0 && heightIndex == 0) );
38 ( shape[m_WidthIndex] == 0 && widthIndex == 0) );
44 batchIndex *= shape[1] * shape[2] * shape[3];
45 heightIndex *= shape[m_WidthIndex] * shape[m_ChannelsIndex];
46 widthIndex *= shape[m_ChannelsIndex];
51 batchIndex *= shape[1] * shape[2] * shape[3];
52 channelIndex *= shape[m_HeightIndex] * shape[m_WidthIndex];
53 heightIndex *= shape[m_WidthIndex];
59 return batchIndex + channelIndex + heightIndex + widthIndex;
64 unsigned int m_ChannelsIndex;
65 unsigned int m_HeightIndex;
66 unsigned int m_WidthIndex;
67 unsigned int m_DepthIndex;