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/operations/
DGather.cpp48 for (uint32_t outputIndex = 0; outputIndex < indicesCount; ++outputIndex) { in eval() local
49 const auto inputIndex = static_cast<uint32_t>(indicesData[outputIndex]); in eval()
52 std::memcpy(outputData + (outer * indicesCount + outputIndex) * innerSize, in eval()
DSlice.cpp59 std::vector<uint32_t> outputIndex(getNumberOfDimensions(outputShape), 0); in evalGeneric() local
72 addVectors(outputIndex, beginIndex, &inputIndex); in evalGeneric()
74 NN_RET_CHECK(indexedOutput.indexToFlatIndex(outputIndex, &outputOffset)); in evalGeneric()
78 NN_RET_CHECK(indexedOutput.nextIndexInplace(&outputIndex, &lastIndex)); in evalGeneric()
DTransposeConv2D.cpp155 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvNhwc() local
157 outputBase[outputIndex] += inputBase[d] * filterBase[d]; in transposeConvNhwc()
243 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvNhwc() local
245 outputBase[outputIndex] += in transposeConvNhwc()
385 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvQuant8PerChannelNhwc() local
387 outputBase[outputIndex] += in transposeConvQuant8PerChannelNhwc()
DUnidirectionalSequenceRNN.cpp57 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims() local
58 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
DBidirectionalSequenceRNN.cpp73 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims() local
74 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
/packages/modules/NeuralNetworks/runtime/test/
DTestPartitioningRandom.cpp1336 uint32_t inputIndex = 0, outputIndex = 0; in TEST_P() local
1349 e->setOutput(outputIndex++, desc.mVector.data(), in TEST_P()
1366 e->setOutputFromMemory(outputIndex++, memory, offset, length, in TEST_P()
1372 CHECK(outputIndex == model.outputCount()); in TEST_P()
1383 uint32_t outputIndex = 0; in TEST_P() local
1388 const size_t outputOffset = outputIndex * problemSize * problemSize; in TEST_P()
1399 std::cout << "nonpartitioned output[" << outputIndex << "] = "; in TEST_P()
1404 outputIndex++; in TEST_P()
1416 uint32_t outputIndex = 0; in TEST_P() local
1421 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.h374 int setOutputFromMemory(uint32_t outputIndex, const RuntimeMemory* memory, uint32_t offset,
376 return setInputOrOutputFromMemory(mModel->getOutputOperand(outputIndex), memory, offset,
377 length, dimensions, &mOutputs.at(outputIndex));
DExecutionBuilder.cpp75 for (uint32_t outputIndex = 0, outputCount = shapes.size(); outputIndex < outputCount; in validateOutputShapesFromDriver() local
76 ++outputIndex) { in validateOutputShapesFromDriver()
77 const Operand& outputOperand = model->getOutputOperand(outputIndex); in validateOutputShapesFromDriver()
79 (shapes[outputIndex].dimensions.size() != 0)) in validateOutputShapesFromDriver()
81 << 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.cpp272 auto outputIndex = mTestModel.main.outputIndexes[i]; in computeGoldenResults() local
273 mTestModel.main.operands[outputIndex].data = outputs[i]; in computeGoldenResults()