12 : m_DimData(outShape.GetNumDimensions())
16 unsigned int sIn0 = 1;
17 unsigned int sIn1 = 1;
18 unsigned int sOut = 1;
20 for (
unsigned int j = numDims - 1, k = 0; k < numDims ; k++, j--)
22 m_DimData[j].m_DimSize = outShape[j];
23 m_DimData[j].m_Stride1 = (inShape0[j] > 1) ? sIn0 : 0;
24 m_DimData[j].m_Stride2 = (inShape1[j] > 1) ? sIn1 : 0;
25 m_DimData[j].m_StrideOut = sOut;
34 : m_DimData(outShape.GetNumDimensions())
39 unsigned int sOut = 1;
44 for (
unsigned int j = numDims - 1, k = 0; k < numDims ; k++, j--)
47 m_DimData[j].m_DimSize = outShape[j];
49 if (dimDifference > 0 && j < dimDifference)
51 m_DimData[j].m_Stride1 = 0;
54 else if (dimDifference > 0)
56 m_DimData[j].m_Stride1 = (inShape[j - dimDifference] > 1) ? sIn : 0;
57 sIn *= inShape[j - dimDifference];
61 m_DimData[j].m_Stride1 = (inShape[j] > 1) ? sIn : 0;
64 m_DimData[j].m_StrideOut = sOut;