Home
last modified time | relevance | path

Searched refs:inputIndex (Results 1 – 18 of 18) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/
Dtyping_weighting.h185 const int inputIndex = dicNode->getInputIndex(0); in getTerminalInsertionCost() local
187 ASSERT(inputIndex < inputSize); in getTerminalInsertionCost()
189 return ScoringParams::TERMINAL_INSERTION_COST * (inputSize - inputIndex); in getTerminalInsertionCost()
206 const int inputIndex = dicNode->getInputIndex(0); in getSpaceSubstitutionCost() local
208 ->getPointToKeyLength(inputIndex, KEYCODE_SPACE); in getSpaceSubstitutionCost()
/packages/modules/NeuralNetworks/common/operations/
DGather.cpp49 const auto inputIndex = static_cast<uint32_t>(indicesData[outputIndex]); in eval() local
50 NN_RET_CHECK_LE(0u, inputIndex); in eval()
51 NN_RET_CHECK_LT(inputIndex, axisSize); in eval()
53 inputData + (outer * axisSize + inputIndex) * innerSize, in eval()
DGroupedConv2D.cpp81 uint32_t inputIndex = hInput * inputWidth * inputDepth + in groupedConvFloat32() local
83 sum += filterBase[filterIndex] * inputBase[inputIndex]; in groupedConvFloat32()
153 uint32_t inputIndex = hInput * inputWidth * inputDepth + in groupedConvQuant8() local
157 (static_cast<int32_t>(inputBase[inputIndex]) + in groupedConvQuant8()
257 uint32_t inputIndex = hInput * inputWidth * inputDepth + in groupedConvQuant8PerChannel() local
260 (static_cast<int32_t>(inputBase[inputIndex]) + in groupedConvQuant8PerChannel()
DSlice.cpp61 std::vector<uint32_t> inputIndex(getNumberOfDimensions(inputShape)); in evalGeneric() local
72 addVectors(outputIndex, beginIndex, &inputIndex); in evalGeneric()
75 NN_RET_CHECK(indexedInput.indexToFlatIndex(inputIndex, &inputOffset)); in evalGeneric()
DUnidirectionalSequenceRNN.cpp56 const uint32_t inputIndex = f * secondDimSize * inputSize + s * inputSize + i; in transposeFirstTwoDims() local
58 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
DBidirectionalSequenceRNN.cpp72 const uint32_t inputIndex = f * secondDimSize * inputSize + s * inputSize + i; in transposeFirstTwoDims() local
74 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
DDepthwiseConv2D.cpp346 uint32_t inputIndex = hInput * inputWidth * inputDepth + in depthwiseConvQuant8PerChannelNhwc() local
349 (static_cast<int32_t>(inputBase[inputIndex]) + in depthwiseConvQuant8PerChannelNhwc()
DConv2D.cpp419 uint32_t inputIndex = hInput * inputWidth * inputDepth + in convQuant8PerChannelNhwc() local
422 (static_cast<int32_t>(inputBase[inputIndex]) + in convQuant8PerChannelNhwc()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp159 const std::vector<int> *const sampledInputYs, const int keyIndex, const int inputIndex) { in calculateSquaredDistanceFromSweetSpotCenter() argument
162 const float inputX = static_cast<float>((*sampledInputXs)[inputIndex]); in calculateSquaredDistanceFromSweetSpotCenter()
163 const float inputY = static_cast<float>((*sampledInputYs)[inputIndex]); in calculateSquaredDistanceFromSweetSpotCenter()
170 const std::vector<int> *const sampledInputYs, const int keyIndex, const int inputIndex) { in calculateNormalizedSquaredDistance() argument
177 if (NOT_A_COORDINATE == (*sampledInputXs)[inputIndex]) { in calculateNormalizedSquaredDistance()
181 sampledInputXs, sampledInputYs, keyIndex, inputIndex); in calculateNormalizedSquaredDistance()
402 const int maxPointToKeyLength, const int inputIndex, const int nodeCodePoint, int x, int y, in pushTouchPoint() argument
467 sampledInputIndice->push_back(inputIndex); in pushTouchPoint()
470 x, y, time, inputIndex, popped); in pushTouchPoint()
605 const int inputIndex, const int keyId) { in getPointToKeyByIdLength() argument
[all …]
Dproximity_info_state_utils.h84 const int inputIndex, const int keyId);
128 const int maxPointToKeyLength, const int inputIndex, const int nodeCodePoint, int x,
154 const int inputIndex);
157 const std::vector<int> *const sampledInputYs, const int keyIndex, const int inputIndex);
Dproximity_info_state.cpp170 const int inputIndex, const int codePoint) const { in getPointToKeyLength() argument
173 const int index = inputIndex * mProximityInfo->getKeyCount() + keyId; in getPointToKeyLength()
184 const int inputIndex, const int keyId) const { in getPointToKeyByIdLength() argument
186 &mSampledNormalizedSquaredLengthCache, mProximityInfo->getKeyCount(), inputIndex, in getPointToKeyByIdLength()
Dproximity_info_state.h147 float getPointToKeyByIdLength(const int inputIndex, const int keyId) const;
149 float getPointToKeyLength(const int inputIndex, const int codePoint) const;
/packages/modules/NeuralNetworks/runtime/test/
DTestPartitioningRandom.cpp398 unsigned inputIndex) { in makeEluSpecialInput() argument
399 if (inputIndex != 1) { in makeEluSpecialInput()
411 int makeRnnSpecialInput(unsigned problemSize, TestModel* model, unsigned inputIndex) { in makeRnnSpecialInput() argument
412 if (inputIndex != 3) { in makeRnnSpecialInput()
429 unsigned inputIndex) { in makeTransposeSpecialInput() argument
430 if (inputIndex != 1) { in makeTransposeSpecialInput()
1336 uint32_t inputIndex = 0, outputIndex = 0; in TEST_P() local
1340 const size_t inputOffset = inputIndex * problemSize * problemSize; in TEST_P()
1344 e->setInput(inputIndex++, desc.mVector.data(), in TEST_P()
1359 const size_t inputOffset = inputIndex * problemSize * problemSize; in TEST_P()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
Ddic_node_state_input.h49 void updateInputIndexG(const int pointerId, const int inputIndex, in updateInputIndexG() argument
51 mInputIndex[pointerId] = inputIndex; in updateInputIndexG()
Ddic_node_state_output.h101 void setSecondWordFirstInputIndex(const int inputIndex) { in setSecondWordFirstInputIndex() argument
102 mSecondWordFirstInputIndex = inputIndex; in setSecondWordFirstInputIndex()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_nodes_cache.h79 bool isLookAheadCorrectionInputIndex(const int inputIndex) const { in isLookAheadCorrectionInputIndex() argument
80 return inputIndex == mInputIndex - 1; in isLookAheadCorrectionInputIndex()
Ddic_node.h261 const int inputIndex = mDicNodeState.mDicNodeStateOutput.getSecondWordFirstInputIndex(); in getSecondWordFirstInputIndex() local
262 if (inputIndex == NOT_AN_INDEX) { in getSecondWordFirstInputIndex()
265 return pInfoState->getInputIndexOfSampledPoint(inputIndex); in getSecondWordFirstInputIndex()
/packages/modules/NeuralNetworks/runtime/
DExecutionBuilder.h369 int setInputFromMemory(uint32_t inputIndex, const RuntimeMemory* memory, uint32_t offset,
371 return setInputOrOutputFromMemory(mModel->getInputOperand(inputIndex), memory, offset,
372 length, dimensions, &mInputs.at(inputIndex));