Home
last modified time | relevance | path

Searched refs:outputIndex (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestion_results.cpp27 int outputIndex = 0; in outputSuggestions() local
31 const int start = outputIndex * MAX_WORD_LENGTH; in outputSuggestions()
35 JniDataUtils::putIntToArray(env, outScoresArray, outputIndex, suggestedWord.getScore()); in outputSuggestions()
36 JniDataUtils::putIntToArray(env, outSpaceIndicesArray, outputIndex, in outputSuggestions()
38 JniDataUtils::putIntToArray(env, outTypesArray, outputIndex, suggestedWord.getType()); in outputSuggestions()
43 ++outputIndex; in outputSuggestions()
46 JniDataUtils::putIntToArray(env, outSuggestionCount, 0 /* index */, outputIndex); in outputSuggestions()
/packages/modules/NeuralNetworks/common/cpu_operations/
DGather.cpp39 for (uint32_t outputIndex = 0; outputIndex < indicesCount; ++outputIndex) { in eval() local
40 const auto inputIndex = static_cast<uint32_t>(indicesData[outputIndex]); in eval()
43 std::memcpy(outputData + (outer * indicesCount + outputIndex) * innerSize, in eval()
DSlice.cpp51 std::vector<uint32_t> outputIndex(getNumberOfDimensions(outputShape), 0); in evalGeneric() local
64 addVectors(outputIndex, beginIndex, &inputIndex); in evalGeneric()
66 NN_RET_CHECK(indexedOutput.indexToFlatIndex(outputIndex, &outputOffset)); in evalGeneric()
70 NN_RET_CHECK(indexedOutput.nextIndexInplace(&outputIndex, &lastIndex)); in evalGeneric()
DTransposeConv2D.cpp151 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvNhwc() local
153 outputBase[outputIndex] += inputBase[d] * filterBase[d]; in transposeConvNhwc()
239 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvNhwc() local
241 outputBase[outputIndex] += in transposeConvNhwc()
381 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvQuant8PerChannelNhwc() local
383 outputBase[outputIndex] += in transposeConvQuant8PerChannelNhwc()
DUnidirectionalSequenceRNN.cpp45 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims() local
46 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
DBidirectionalSequenceRNN.cpp44 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims() local
45 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
/packages/modules/NeuralNetworks/runtime/test/
DTestPartitioningRandom.cpp1320 uint32_t inputIndex = 0, outputIndex = 0; in TEST_P() local
1333 e->setOutput(outputIndex++, desc.mVector.data(), in TEST_P()
1350 e->setOutputFromMemory(outputIndex++, memory, offset, length, in TEST_P()
1356 CHECK(outputIndex == model.outputCount()); in TEST_P()
1367 uint32_t outputIndex = 0; in TEST_P() local
1372 const size_t outputOffset = outputIndex * problemSize * problemSize; in TEST_P()
1383 std::cout << "nonpartitioned output[" << outputIndex << "] = "; in TEST_P()
1388 outputIndex++; in TEST_P()
1400 uint32_t outputIndex = 0; in TEST_P() local
1405 SCOPED_TRACE(outputIndex); in TEST_P()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
DTestHarness.cpp200 const uint32_t outputIndex = model.main.outputIndexes[i]; in checkResults() local
202 << "When comparing output " << i << " (op" << outputIndex << ")"); in checkResults()
203 const auto& operand = model.main.operands[outputIndex]; in checkResults()
684 const uint32_t outputIndex = kTestModel.main.outputIndexes[i]; in dumpResults() local
685 const auto& operand = kTestModel.main.operands[outputIndex]; in dumpResults()
688 mOs << " # op" << outputIndex << ": "; in dumpResults()
692 mOs << " op" << outputIndex << ": "; in dumpResults()
819 uint32_t outputIndex = model->main.outputIndexes[i]; in setExpectedOutputsFromFloat32Results() local
820 auto& op = model->main.operands[outputIndex]; in setExpectedOutputsFromFloat32Results()
/packages/modules/NeuralNetworks/runtime/
DExecutionBuilder.h396 int setOutputFromMemory(uint32_t outputIndex, const RuntimeMemory* memory, uint32_t offset,
398 return setInputOrOutputFromMemory(mModel->getOutputOperand(outputIndex), memory, offset,
399 length, dimensions, &mOutputs.at(outputIndex));
DExecutionBuilder.cpp76 for (uint32_t outputIndex = 0, outputCount = shapes.size(); outputIndex < outputCount; in validateOutputShapesFromDriver() local
77 ++outputIndex) { in validateOutputShapesFromDriver()
78 const Operand& outputOperand = model->getOutputOperand(outputIndex); in validateOutputShapesFromDriver()
80 (shapes[outputIndex].dimensions.size() != 0)) in validateOutputShapesFromDriver()
82 << outputIndex << " shape unexpectedly has zero rank"; in validateOutputShapesFromDriver()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DMpegTsDefaultAudioTrackRenderer.java489 int outputIndex = in feedInputBuffer() local
491 if (outputIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in feedInputBuffer()
494 } else if (outputIndex < 0) { in feedInputBuffer()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DTestRandomGraph.cpp276 auto outputIndex = mTestModel.main.outputIndexes[i]; in computeGoldenResults() local
277 mTestModel.main.operands[outputIndex].data = outputs[i]; in computeGoldenResults()