/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | neural_network_runtime_compat.cpp | 70 uint32_t outputIndex, void *dataBuffer, size_t length) in OH_NNExecutor_SetOutput() 86 return executorImpl->SetOutput(outputIndex, dataBuffer, length); in OH_NNExecutor_SetOutput() 122 NNRT_API OH_NN_Memory *OH_NNExecutor_AllocateOutputMemory(OH_NNExecutor *executor, uint32_t outputIndex, size_t length) in OH_NNExecutor_AllocateOutputMemory() argument 135 OH_NN_ReturnCode ret = executorImpl->CreateOutputMemory(outputIndex, length, &nnMemory); in OH_NNExecutor_AllocateOutputMemory() 169 NNRT_API void OH_NNExecutor_DestroyOutputMemory(OH_NNExecutor *executor, uint32_t outputIndex, OH_NN_Memory **memory) in OH_NNExecutor_DestroyOutputMemory() argument 185 OH_NN_ReturnCode ret = executorImpl->DestroyOutputMemory(outputIndex, memory); in OH_NNExecutor_DestroyOutputMemory() 215 uint32_t outputIndex, const OH_NN_Memory *memory) in OH_NNExecutor_SetOutputWithMemory() 227 return executorImpl->SetOutputFromMemory(outputIndex, *memory); in OH_NNExecutor_SetOutputWithMemory() 69 OH_NNExecutor_SetOutput(OH_NNExecutor *executor, uint32_t outputIndex, void *dataBuffer, size_t length) OH_NNExecutor_SetOutput() argument 214 OH_NNExecutor_SetOutputWithMemory(OH_NNExecutor *executor, uint32_t outputIndex, const OH_NN_Memory *memory) OH_NNExecutor_SetOutputWithMemory() argument
|
H A D | nnexecutor.cpp | 111 OH_NN_ReturnCode NNExecutor::GetOutputShape(uint32_t outputIndex, int32_t** shape, uint32_t* shapeNum) const in GetOutputShape() argument 113 if (outputIndex >= m_outputTensorDescs.size()) { in GetOutputShape() 114 LOGE("NNExecutor::GetOutputShape failed, outputIndex must be smaller than m_outputTensorDescs.size."); in GetOutputShape() 117 if (m_outputTensorDescs[outputIndex].first == nullptr) { in GetOutputShape() 118 LOGE("NNExecutor::GetOutputShape failed, tensor desc of output %{public}u is nullptr.", outputIndex); in GetOutputShape() 122 auto tensorDesc = m_outputTensorDescs[outputIndex].first; in GetOutputShape()
|
H A D | nnexecutor.h | 39 OH_NN_ReturnCode GetOutputShape(uint32_t outputIndex, int32_t** shape, uint32_t* shapeNum) const override;
|
H A D | lite_graph_to_hdi_model_v2_0.cpp | 1030 tmp.outputIndex = node->output_indices_; in LiteGraph_To_HDIModel() 1082 retModel->outputIndex = liteGraph->output_indices_; in LiteGraph_To_HDIModel()
|
H A D | lite_graph_to_hdi_model_v1_0.cpp | 1029 tmp.outputIndex = node->output_indices_; in LiteGraph_To_HDIModel() 1081 retModel->outputIndex = liteGraph->output_indices_; in LiteGraph_To_HDIModel()
|
H A D | lite_graph_to_hdi_model_v2_1.cpp | 1835 tmp.outputIndex = node->output_indices_;
in LiteGraph_To_HDIModel() 1887 retModel->outputIndex = liteGraph->output_indices_;
in LiteGraph_To_HDIModel()
|
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/nnrt/ |
H A D | nnrt_implementation.h | 65 OH_NN_ReturnCode (*OH_NNExecutor_SetOutput)(const OH_NNExecutor* executor, uint32_t outputIndex, void* buffer, 67 OH_NN_ReturnCode (*OH_NNExecutor_GetOutputShape)(const OH_NNExecutor* executor, uint32_t outputIndex, 71 OH_NN_Memory* (*OH_NNExecutor_AllocateOutputMemory)(OH_NNExecutor* executor, uint32_t outputIndex, size_t length); 72 void (*OH_NNExecutor_DestroyOutputMemory)(OH_NNExecutor* executor, uint32_t outputIndex, OH_NN_Memory** memory); 76 OH_NN_ReturnCode (*OH_NNExecutor_SetOutputWithMemory)(OH_NNExecutor* executor, uint32_t outputIndex,
|
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 238 uint32_t outputIndex = 0; in SetInputAndOutput() local 243 uint32_t* shapeNum = &outputIndex; in SetInputAndOutput() 244 EXPECT_EQ(OH_NN_SUCCESS, executor.GetOutputShape(outputIndex, shapeAA, shapeNum)); in SetInputAndOutput() 1234 uint32_t outputIndex = 0; in HWTEST_F() local 1238 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetOutput(nullptr, outputIndex, buffer, length)); in HWTEST_F() 1255 uint32_t outputIndex = 0; in HWTEST_F() local 1258 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetOutput(nnExecutor, outputIndex, buffer, length)); in HWTEST_F() 1275 uint32_t outputIndex = 0; in HWTEST_F() local 1279 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetOutput(nnExecutor, outputIndex, buffer, length)); in HWTEST_F() 1296 uint32_t outputIndex in HWTEST_F() local 1319 uint32_t outputIndex = 0; HWTEST_F() local 1338 uint32_t outputIndex = 0; HWTEST_F() local 1363 uint32_t outputIndex = 0; HWTEST_F() local 1384 uint32_t outputIndex = 0; HWTEST_F() local 1405 uint32_t outputIndex = 0; HWTEST_F() local 1448 uint32_t outputIndex = 0; HWTEST_F() local 1469 uint32_t outputIndex = 0; HWTEST_F() local 1490 uint32_t outputIndex = 6; HWTEST_F() local 1511 uint32_t outputIndex = 0; HWTEST_F() local 1526 uint32_t outputIndex = 0; HWTEST_F() local 1547 uint32_t outputIndex = 0; HWTEST_F() local 1568 uint32_t outputIndex = 6; HWTEST_F() local 1589 uint32_t outputIndex = 0; HWTEST_F() local 1712 uint32_t outputIndex = 0; HWTEST_F() local 1735 uint32_t outputIndex = 0; HWTEST_F() local 1755 uint32_t outputIndex = 0; HWTEST_F() local 1776 uint32_t outputIndex = 6; HWTEST_F() local 1803 uint32_t outputIndex = 0; HWTEST_F() local 1910 uint32_t outputIndex = 0; HWTEST_F() local 1932 uint32_t outputIndex = 0; HWTEST_F() local 1952 uint32_t outputIndex = 0; HWTEST_F() local [all...] |
/foundation/ai/neural_network_runtime/interfaces/kits/c/neural_network_runtime/ |
H A D | neural_network_runtime.h | 432 * This method binds the buffer to which <b>dataBuffer</b> points to the output specified by <b>outputIndex</b>. 445 * @param outputIndex Output Index value, which is in the same sequence of the data output when 461 uint32_t outputIndex, 513 * @param outputIndex Output Index value, which is in the same sequence of the data output when 525 OH_NN_Memory *OH_NNExecutor_AllocateOutputMemory(OH_NNExecutor *executor, uint32_t outputIndex, size_t length); 557 * The mapping between <b>outputIndex</b> and <b>memory</b> must be the same as that in memory instance creation.\n 563 * @param outputIndex Output Index value, which is in the same sequence of the data output when 575 void OH_NNExecutor_DestroyOutputMemory(OH_NNExecutor *executor, uint32_t outputIndex, OH_NN_Memory **memory); 619 * @param outputIndex Output Index value, which is in the same sequence of the data output when 635 uint32_t outputIndex, [all...] |
H A D | neural_network_core.h | 820 * If the <b>outputIndex</b> is greater than or equal to the output tensor number, this method will return error code. 829 * @param outputIndex Output Index value, which is in the same sequence of the data output when 845 uint32_t outputIndex,
|
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 240 uint32_t outputIndex = 0; in SetInputAndOutput() local 245 uint32_t* shapeNum = &outputIndex; in SetInputAndOutput() 246 EXPECT_EQ(OH_NN_SUCCESS, executor.GetOutputShape(outputIndex, shapeAA, shapeNum)); in SetInputAndOutput() 1412 uint32_t outputIndex = 0; in HWTEST_F() local 1416 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetOutput(nullptr, outputIndex, buffer, length)); in HWTEST_F() 1433 uint32_t outputIndex = 0; in HWTEST_F() local 1436 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetOutput(nnExecutor, outputIndex, buffer, length)); in HWTEST_F() 1453 uint32_t outputIndex = 0; in HWTEST_F() local 1457 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetOutput(nnExecutor, outputIndex, buffer, length)); in HWTEST_F() 1474 uint32_t outputIndex in HWTEST_F() local 1499 uint32_t outputIndex = 0; HWTEST_F() local 1526 uint32_t outputIndex = 0; HWTEST_F() local 1552 uint32_t outputIndex = 0; HWTEST_F() local 1574 uint32_t outputIndex = 0; HWTEST_F() local 1593 uint32_t outputIndex = 0; HWTEST_F() local 1618 uint32_t outputIndex = 0; HWTEST_F() local 1639 uint32_t outputIndex = 0; HWTEST_F() local 1660 uint32_t outputIndex = 0; HWTEST_F() local 1729 uint32_t outputIndex = 0; HWTEST_F() local 1750 uint32_t outputIndex = 0; HWTEST_F() local 1771 uint32_t outputIndex = 6; HWTEST_F() local 1792 uint32_t outputIndex = 0; HWTEST_F() local 1818 uint32_t outputIndex = 0; HWTEST_F() local 1865 uint32_t outputIndex = 0; HWTEST_F() local 1892 uint32_t outputIndex = 0; HWTEST_F() local 1909 uint32_t outputIndex = 0; HWTEST_F() local 1930 uint32_t outputIndex = 0; HWTEST_F() local 1951 uint32_t outputIndex = 6; HWTEST_F() local 1972 uint32_t outputIndex = 0; HWTEST_F() local 1998 uint32_t outputIndex = 0; HWTEST_F() local 2045 uint32_t outputIndex = 0; HWTEST_F() local 2072 uint32_t outputIndex = 0; HWTEST_F() local 2194 uint32_t outputIndex = 0; HWTEST_F() local 2222 uint32_t outputIndex = 0; HWTEST_F() local 2249 uint32_t outputIndex = 0; HWTEST_F() local 2277 uint32_t outputIndex = 6; HWTEST_F() local 2311 uint32_t outputIndex = 0; HWTEST_F() local 2441 uint32_t outputIndex = 0; HWTEST_F() local 2468 uint32_t outputIndex = 0; HWTEST_F() local 2495 uint32_t outputIndex = 0; HWTEST_F() local [all...] |
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/src/ |
H A D | nnrt_device_service.cpp | 262 if (model.outputIndex.empty()) { in ValidateModel() 276 auto outputIt = std::find_if(model.outputIndex.begin(), model.outputIndex.end(), [tensorSize](size_t outputIndex) { in ValidateModel() 277 return outputIndex > tensorSize; in ValidateModel() 279 if (outputIt != model.outputIndex.end()) { in ValidateModel() 303 metaGraph->outputIndex = model.outputIndex; in TransModelToGraph() 375 cnode->outputIndex = node.outputIndex; in TransNode() [all...] |
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/src/ |
H A D | nnrt_device_service.cpp | 297 if (model.outputIndex.empty()) { in ValidateModel() 311 auto outputIt = std::find_if(model.outputIndex.begin(), model.outputIndex.end(), [tensorSize](size_t outputIndex) { in ValidateModel() 312 return outputIndex > tensorSize; in ValidateModel() 314 if (outputIt != model.outputIndex.end()) { in ValidateModel() 339 metaGraph->outputIndex = model.outputIndex; in TransModelToGraph() 421 cnode->outputIndex = node.outputIndex; in TransNode() [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/ |
H A D | heif_hw_decoder.cpp | 566 void HeifHardwareDecoder::AssembleOutput(uint32_t outputIndex, shared_ptr<ImageCodecBuffer>& buffer) in AssembleOutput() argument 593 uint32_t decodedRows = outputIndex / gridInfo_.cols; in AssembleOutput() 594 uint32_t decodedCols = outputIndex % gridInfo_.cols; in AssembleOutput() 600 LOGE("failed to assemble output(grid=%{public}d))", outputIndex); in AssembleOutput() 608 uint32_t outputIndex = 0; in ReceiveOutputBufferLoop() local 629 AssembleOutput(outputIndex, buffer); in ReceiveOutputBufferLoop() 631 ++outputIndex; in ReceiveOutputBufferLoop() 638 if (outputIndex < expectedOutputCnt) { in ReceiveOutputBufferLoop() 639 LOGE("expect %{public}u output, got %{public}u", expectedOutputCnt, outputIndex); in ReceiveOutputBufferLoop() 642 LOGD("received %{public}u output in total", outputIndex); in ReceiveOutputBufferLoop() [all...] |
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/tools/ |
H A D | bitmap_helpers.h | 73 int32_t outputIndex = 2; in Resize() local 88 interpreter->SetTensorParametersReadWrite(outputIndex, kTfLiteFloat32, "output", in Resize()
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
H A D | NativeFuzzTest.cpp | 98 int32_t outputIndex = decoderDemo->NativeGetOutputIndex(); in outputFunc() local 99 OH_AVErrCode ret = decoderDemo->NativeFreeOutputData(handle, outputIndex); in outputFunc() 359 int32_t outputIndex = getIntRand(); in HWTEST_F() local 361 cout << "index is: " << outputIndex << endl; in HWTEST_F() 366 ret = decoderDemo->NativeFreeOutputData(handle, outputIndex); in HWTEST_F()
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/ |
H A D | NativeFuzzTest.cpp | 100 int32_t outputIndex = encoderDemo->NativeGetOutputIndex(); in outputFunc() local 101 OH_AVErrCode ret = encoderDemo->NativeFreeOutputData(handle, outputIndex); in outputFunc() 373 int32_t outputIndex = getIntRand(); in HWTEST_F() local 375 cout << "index is: " << outputIndex << endl; in HWTEST_F() 380 ret = encoderDemo->NativeFreeOutputData(handle, outputIndex); in HWTEST_F()
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/ |
H A D | executor.h | 40 virtual OH_NN_ReturnCode GetOutputShape(uint32_t outputIndex, int32_t** shape, uint32_t* shapeNum) const = 0;
|
H A D | neural_network_core.cpp | 1460 uint32_t outputIndex, in OH_NNExecutor_GetOutputShape() 1482 return executorImpl->GetOutputShape(outputIndex, shape, shapeLength); in OH_NNExecutor_GetOutputShape() 1459 OH_NNExecutor_GetOutputShape(OH_NNExecutor *executor, uint32_t outputIndex, int32_t **shape, uint32_t *shapeLength) OH_NNExecutor_GetOutputShape() argument
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Common/src/ |
H A D | AudioEncoderDemoCommon.cpp | 253 uint32_t outputIndex = signal_->outQueue_.front(); in updateOutputData() local 254 outIndexQueue_.push(outputIndex); in updateOutputData() 258 cout << "output index is " << outputIndex << endl; in updateOutputData() 283 uint32_t outputIndex = outIndexQueue_.front(); in NativeGetOutputIndex() local 285 return outputIndex; in NativeGetOutputIndex() 1403 uint32_t outputIndex = outIndexQueue_.front(); in InnerGetOutputIndex() local 1405 return outputIndex; in InnerGetOutputIndex() 1439 uint32_t outputIndex = innersignal_->outQueue_.front(); in InnerUpdateOutputData() local 1440 outIndexQueue_.push(outputIndex); in InnerUpdateOutputData() 1444 cout << "output index is " << outputIndex << end in InnerUpdateOutputData() [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/hardware/ |
H A D | heif_hw_decoder.h | 68 void AssembleOutput(uint32_t outputIndex, std::shared_ptr<ImageCodecBuffer>& buffer);
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Common/src/ |
H A D | AudioDecoderDemoCommon.cpp | 259 uint32_t outputIndex = signal_->outQueue_.front(); in updateOutputData() local 260 outIndexQueue_.push(outputIndex); in updateOutputData() 264 cout << "output index is " << outputIndex << endl; in updateOutputData() 299 uint32_t outputIndex = innersignal_->outQueue_.front(); in InnerUpdateOutputData() local 300 outIndexQueue_.push(outputIndex); in InnerUpdateOutputData() 304 cout << "output index is " << outputIndex << endl; in InnerUpdateOutputData() 331 uint32_t outputIndex = outIndexQueue_.front(); in NativeGetOutputIndex() local 333 return outputIndex; in NativeGetOutputIndex()
|
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/delegates/nnrt_delegate/ |
H A D | nnrt_delegate_kernel.cpp | 280 auto outputIndex = node->outputs->data[outputPos]; in AddOpsAndTensors() local 281 TF_LITE_ENSURE_STATUS(builder.AddTensorOutput(outputIndex, reg->builtin_code, outputTensorFlags)); in AddOpsAndTensors()
|
H A D | nnrt_op_builder.cpp | 199 int32_t outputIndex = mappingArgs.node->outputs->data[0]; in AddQuantizeParams() local 200 m_pTensorMapping->ConvertType(m_context, outputIndex, 0, nnType); in AddQuantizeParams()
|
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_core_test/ |
H A D | neural_network_core_test.cpp | 1734 uint32_t outputIndex = 0; in HWTEST_F() local 1737 OH_NN_ReturnCode ret = OH_NNExecutor_GetOutputShape(executor, outputIndex, &shape, shapeLength); in HWTEST_F() 1757 uint32_t outputIndex = 0; in HWTEST_F() local 1760 OH_NN_ReturnCode ret = OH_NNExecutor_GetOutputShape(nnExecutor, outputIndex, &shape, shapeLength); in HWTEST_F()
|