Home | History | Annotate | Download | only in Tensor

Lines Matching refs:offsetIdx

167         const Index offsetIdx = patchOffset / m_outputStrides[i];
168 patchOffset -= offsetIdx * m_outputStrides[i];
169 inputIndex += (patchIdx + offsetIdx) * m_inputStrides[i];
175 const Index offsetIdx = patchOffset / m_outputStrides[i+1];
176 patchOffset -= offsetIdx * m_outputStrides[i+1];
177 inputIndex += (patchIdx + offsetIdx) * m_inputStrides[i];
205 const Index offsetIdx[2] = {patchOffsets[0] / m_outputStrides[i],
207 patchOffsets[0] -= offsetIdx[0] * m_outputStrides[i];
208 patchOffsets[1] -= offsetIdx[1] * m_outputStrides[i];
210 inputIndices[0] += (patchIdx[0] + offsetIdx[0]) * m_inputStrides[i];
211 inputIndices[1] += (patchIdx[1] + offsetIdx[1]) * m_inputStrides[i];
220 const Index offsetIdx[2] = {patchOffsets[0] / m_outputStrides[i+1],
222 patchOffsets[0] -= offsetIdx[0] * m_outputStrides[i+1];
223 patchOffsets[1] -= offsetIdx[1] * m_outputStrides[i+1];
225 inputIndices[0] += (patchIdx[0] + offsetIdx[0]) * m_inputStrides[i];
226 inputIndices[1] += (patchIdx[1] + offsetIdx[1]) * m_inputStrides[i];