29 unsigned int batchIndex,
unsigned int channelIndex,
30 unsigned int heightIndex,
unsigned int widthIndex)
const
32 if (batchIndex >= shape[0] && !( shape[0] == 0 && batchIndex == 0))
36 if (channelIndex >= shape[m_ChannelsIndex] &&
37 !(shape[m_ChannelsIndex] == 0 && channelIndex == 0))
42 if (heightIndex >= shape[m_HeightIndex] &&
43 !( shape[m_HeightIndex] == 0 && heightIndex == 0))
47 if (widthIndex >= shape[m_WidthIndex] &&
48 ( shape[m_WidthIndex] == 0 && widthIndex == 0))
57 batchIndex *= shape[1] * shape[2] * shape[3];
58 heightIndex *= shape[m_WidthIndex] * shape[m_ChannelsIndex];
59 widthIndex *= shape[m_ChannelsIndex];
64 batchIndex *= shape[1] * shape[2] * shape[3];
65 channelIndex *= shape[m_HeightIndex] * shape[m_WidthIndex];
66 heightIndex *= shape[m_WidthIndex];
72 return batchIndex + channelIndex + heightIndex + widthIndex;
77 unsigned int m_ChannelsIndex;
78 unsigned int m_HeightIndex;
79 unsigned int m_WidthIndex;
80 unsigned int m_DepthIndex;