Home
last modified time | relevance | path

Searched refs:OH_NN_ReturnCode (Results 1 – 25 of 416) sorted by relevance

12345678910>>...17

/ohos5.0/foundation/ai/neural_network_runtime/interfaces/kits/c/neural_network_runtime/
H A Dneural_network_core.h343 OH_NN_ReturnCode OH_NNCompilation_Build(OH_NNCompilation *compilation);
401 OH_NN_ReturnCode OH_NNTensorDesc_Destroy(NN_TensorDesc **tensorDesc);
694 OH_NN_ReturnCode OH_NNTensor_Destroy(NN_Tensor **tensor);
750 OH_NN_ReturnCode OH_NNTensor_GetFd(const NN_Tensor *tensor, int *fd);
775 OH_NN_ReturnCode OH_NNTensor_GetSize(const NN_Tensor *tensor, size_t *size);
796 OH_NN_ReturnCode OH_NNTensor_GetOffset(const NN_Tensor *tensor, size_t *offset);
844 OH_NN_ReturnCode OH_NNExecutor_GetOutputShape(OH_NNExecutor *executor,
956 OH_NN_ReturnCode OH_NNExecutor_GetInputDimRange(const OH_NNExecutor *executor,
1016 OH_NN_ReturnCode OH_NNExecutor_RunSync(OH_NNExecutor *executor,
1061 OH_NN_ReturnCode OH_NNExecutor_RunAsync(OH_NNExecutor *executor,
[all …]
H A Dneural_network_runtime.h98 OH_NN_ReturnCode OH_NNQuantParam_SetZeroPoints(NN_QuantParam *quantParams,
135 OH_NN_ReturnCode OH_NNQuantParam_Destroy(NN_QuantParam **quantParams);
262 OH_NN_ReturnCode OH_NNModel_AddOperation(OH_NNModel *model,
288 OH_NN_ReturnCode OH_NNModel_SpecifyInputsAndOutputs(OH_NNModel *model,
311 OH_NN_ReturnCode OH_NNModel_Finish(OH_NNModel *model);
355 OH_NN_ReturnCode OH_NNModel_GetAvailableOperations(OH_NNModel *model,
423 OH_NN_ReturnCode OH_NNExecutor_SetInput(OH_NNExecutor *executor,
460 OH_NN_ReturnCode OH_NNExecutor_SetOutput(OH_NNExecutor *executor,
479 OH_NN_ReturnCode OH_NNExecutor_Run(OH_NNExecutor *executor);
603 OH_NN_ReturnCode OH_NNExecutor_SetInputWithMemory(OH_NNExecutor *executor,
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/nnrt/
H A Dnnrt_implementation.h38 OH_NN_ReturnCode (*OH_NNModel_AddTensor)(OH_NNModel* model, const OH_NN_Tensor* nnTensor);
39OH_NN_ReturnCode (*OH_NNModel_SetTensorData)(OH_NNModel* model, uint32_t index, const void* buffer,
41 OH_NN_ReturnCode (*OH_NNModel_AddOperation)(OH_NNModel* model, OH_NN_OperationType op,
46 OH_NN_ReturnCode (*OH_NNModel_Finish)(OH_NNModel* model);
54 OH_NN_ReturnCode (*OH_NNCompilation_SetPerformanceMode)(OH_NNCompilation* compilation,
58 OH_NN_ReturnCode (*OH_NNCompilation_SetDevice)(OH_NNCompilation* compilation, size_t deviceID);
59 OH_NN_ReturnCode (*OH_NNCompilation_Build)(OH_NNCompilation* compilation);
63 OH_NN_ReturnCode (*OH_NNExecutor_SetInput)(OH_NNExecutor* executor, uint32_t inputIndex,
69 OH_NN_ReturnCode (*OH_NNExecutor_Run)(OH_NNExecutor* executor);
81 OH_NN_ReturnCode (*OH_NNDevice_GetName)(size_t deviceID, const char** name);
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dhdi_device_v2_0.h33 OH_NN_ReturnCode GetDeviceName(std::string& name) override;
34 OH_NN_ReturnCode GetVendorName(std::string& name) override;
35 OH_NN_ReturnCode GetVersion(std::string& version) override;
36 OH_NN_ReturnCode GetDeviceType(OH_NN_DeviceType& deviceType) override;
37 OH_NN_ReturnCode GetDeviceStatus(DeviceStatus& status) override;
43 OH_NN_ReturnCode IsPrioritySupported(bool& isSupported) override;
45 OH_NN_ReturnCode IsModelCacheSupported(bool& isSupported) override;
50 OH_NN_ReturnCode PrepareModel(const void* metaGraph,
64 OH_NN_ReturnCode ReleaseBuffer(const void* buffer) override;
66 OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) override;
[all …]
H A Dhdi_device_v2_1.h33 OH_NN_ReturnCode GetDeviceName(std::string& name) override;
34 OH_NN_ReturnCode GetVendorName(std::string& name) override;
35 OH_NN_ReturnCode GetVersion(std::string& version) override;
36 OH_NN_ReturnCode GetDeviceType(OH_NN_DeviceType& deviceType) override;
37 OH_NN_ReturnCode GetDeviceStatus(DeviceStatus& status) override;
43 OH_NN_ReturnCode IsPrioritySupported(bool& isSupported) override;
45 OH_NN_ReturnCode IsModelCacheSupported(bool& isSupported) override;
50 OH_NN_ReturnCode PrepareModel(const void* metaGraph,
64 OH_NN_ReturnCode ReleaseBuffer(const void* buffer) override;
66 OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) override;
[all …]
H A Ddevice.h37 virtual OH_NN_ReturnCode GetDeviceName(std::string& name) = 0;
38 virtual OH_NN_ReturnCode GetVendorName(std::string& name) = 0;
39 virtual OH_NN_ReturnCode GetVersion(std::string& version) = 0;
40 virtual OH_NN_ReturnCode GetDeviceType(OH_NN_DeviceType& deviceType) = 0;
41 virtual OH_NN_ReturnCode GetDeviceStatus(DeviceStatus& status) = 0;
47 virtual OH_NN_ReturnCode IsPrioritySupported(bool& isSupported) = 0;
49 virtual OH_NN_ReturnCode IsModelCacheSupported(bool& isSupported) = 0;
54 virtual OH_NN_ReturnCode PrepareModel(const void* metaGraph,
68 virtual OH_NN_ReturnCode ReleaseBuffer(const void* buffer) = 0;
70 virtual OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) = 0;
[all …]
H A Dhdi_device_v1_0.h33 OH_NN_ReturnCode GetDeviceName(std::string& name) override;
34 OH_NN_ReturnCode GetVendorName(std::string& name) override;
35 OH_NN_ReturnCode GetVersion(std::string& version) override;
36 OH_NN_ReturnCode GetDeviceType(OH_NN_DeviceType& deviceType) override;
37 OH_NN_ReturnCode GetDeviceStatus(DeviceStatus& status) override;
43 OH_NN_ReturnCode IsPrioritySupported(bool& isSupported) override;
45 OH_NN_ReturnCode IsModelCacheSupported(bool& isSupported) override;
50 OH_NN_ReturnCode PrepareModel(const void* metaGraph,
64 OH_NN_ReturnCode ReleaseBuffer(const void* buffer) override;
66 OH_NN_ReturnCode AllocateBuffer(size_t length, int& fd) override;
[all …]
H A Dnncompiler.h42 OH_NN_ReturnCode SetEnableFp16(bool isFp16) override;
45 OH_NN_ReturnCode Build() override;
47 OH_NN_ReturnCode SaveToCacheFile() const override;
48 OH_NN_ReturnCode RestoreFromCacheFile() override;
61 OH_NN_ReturnCode SerializeTensorsToBuffer(
64 OH_NN_ReturnCode DeserializedTensorsFromBuffer(
67 OH_NN_ReturnCode OnlineBuild();
68 OH_NN_ReturnCode NormalBuild();
69 OH_NN_ReturnCode BuildOfflineModel();
70 OH_NN_ReturnCode CheckModelParameter() const;
[all …]
H A Dnnexecutor.h35 OH_NN_ReturnCode GetInputDimRange(size_t inputIndex,
46 OH_NN_ReturnCode SetOnRunDone(NN_OnRunDone onRunDone) override;
47 OH_NN_ReturnCode SetOnServiceDied(NN_OnServiceDied onServiceDied) override;
48 OH_NN_ReturnCode RunSync(NN_Tensor* inputTensors[],
52 OH_NN_ReturnCode RunAsync(NN_Tensor* inputTensors[],
58 OH_NN_ReturnCode GetModelID(uint32_t& modelId) const override;
66 OH_NN_ReturnCode SetOutput(uint32_t index, void* buffer, size_t length);
71 OH_NN_ReturnCode DestroyInputMemory(uint32_t index, OH_NN_Memory** memory);
72 OH_NN_ReturnCode DestroyOutputMemory(uint32_t index, OH_NN_Memory** memory);
74 OH_NN_ReturnCode Run();
[all …]
H A Dinner_model.h35 OH_NN_ReturnCode BuildFromLiteGraph(const mindspore::lite::LiteGraph* liteGraph,
38 OH_NN_ReturnCode AddTensor(const OH_NN_Tensor& nnTensor);
39 OH_NN_ReturnCode AddTensorDesc(const NN_TensorDesc* nnTensorDesc);
41 OH_NN_ReturnCode SetTensorType(uint32_t index, OH_NN_TensorType tensorType);
42 OH_NN_ReturnCode SetTensorValue(uint32_t index, const void* buffer, size_t length);
43 OH_NN_ReturnCode AddOperation(OH_NN_OperationType opType,
48 OH_NN_ReturnCode SpecifyInputsAndOutputs(
52 OH_NN_ReturnCode Build();
67 OH_NN_ReturnCode ValidateInputAndOutput(
69 OH_NN_ReturnCode ValidateTensorArray(const OH_NN_UInt32Array& indices) const;
[all …]
H A Dnn_tensor.h43 OH_NN_ReturnCode BuildFromOHNNTensor(const OH_NN_Tensor& nnTensor);
44 OH_NN_ReturnCode BuildFromOHNNTensorInfo(const OH_NN_TensorInfo& nnTensorInfo);
45 OH_NN_ReturnCode BuildFromTensorDesc(const NN_TensorDesc* tensorDesc);
47 OH_NN_ReturnCode Build(OH_NN_DataType dataType,
56 OH_NN_ReturnCode SetDimensions(const std::vector<int32_t>& dimensions);
57 OH_NN_ReturnCode SetQuantParam(const NN_QuantParam* quantParam);
58 OH_NN_ReturnCode SetTensorType(OH_NN_TensorType tensorType);
83 OH_NN_ReturnCode ParseQuantParams(const OH_NN_QuantParam* quantParams);
84 OH_NN_ReturnCode ParseDimensions(const int32_t* dimensions, uint32_t dimensionCount);
85 OH_NN_ReturnCode ValidateQuantParams(const std::vector<QuantParam>& quantParams);
[all …]
H A Dnncompiled_cache.h45 OH_NN_ReturnCode Save(const std::vector<Buffer>& caches,
48 OH_NN_ReturnCode Restore(const std::string& cacheDir,
52 OH_NN_ReturnCode SetBackend(size_t backendID);
54 OH_NN_ReturnCode WriteCacheInfo(uint32_t cacheSize,
57OH_NN_ReturnCode CheckCacheInfo(NNCompiledCacheInfo& modelCacheInfo, const std::string& cacheInfoP…
60 OH_NN_ReturnCode GenerateCacheFiles(const std::vector<Buffer>& caches,
63 OH_NN_ReturnCode GenerateCacheModel(const std::vector<Buffer>& caches,
67 OH_NN_ReturnCode ReadCacheModelFile(const std::string& file, Buffer& cache) const;
69 OH_NN_ReturnCode GetCacheFileLength(std::ifstream& ifs, int& fileSize) const;
70 OH_NN_ReturnCode VerifyCachePath(const std::string& cachePath) const;
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_compiled_cache/
H A Dnn_compiled_cache_test.cpp41 MOCK_METHOD1(GetDeviceName, OH_NN_ReturnCode(std::string&));
42 MOCK_METHOD1(GetVendorName, OH_NN_ReturnCode(std::string&));
43 MOCK_METHOD1(GetVersion, OH_NN_ReturnCode(std::string&));
45 MOCK_METHOD1(GetDeviceStatus, OH_NN_ReturnCode(DeviceStatus&));
50 MOCK_METHOD1(IsPrioritySupported, OH_NN_ReturnCode(bool&));
51 MOCK_METHOD1(IsDynamicInputSupported, OH_NN_ReturnCode(bool&));
52 MOCK_METHOD1(IsModelCacheSupported, OH_NN_ReturnCode(bool&));
56 MOCK_METHOD3(PrepareModel, OH_NN_ReturnCode(const void*,
69 MOCK_METHOD1(ReleaseBuffer, OH_NN_ReturnCode(const void*));
70 MOCK_METHOD2(AllocateBuffer, OH_NN_ReturnCode(size_t, int&));
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/
H A Dcompiler.h34 virtual OH_NN_ReturnCode SetCacheDir(const std::string& cacheModelPath, uint32_t version) = 0;
35 virtual OH_NN_ReturnCode SetPerformance(OH_NN_PerformanceMode performance) = 0;
36 virtual OH_NN_ReturnCode SetPriority(OH_NN_Priority priority) = 0;
37 virtual OH_NN_ReturnCode SetEnableFp16(bool isFp16) = 0;
40 virtual OH_NN_ReturnCode Build() = 0;
42 virtual OH_NN_ReturnCode SaveToCacheFile() const = 0;
43 virtual OH_NN_ReturnCode RestoreFromCacheFile() = 0;
44 …virtual OH_NN_ReturnCode SaveToCacheBuffer(const void* buffer, size_t length, size_t* modelSize) c…
45 virtual OH_NN_ReturnCode RestoreFromCacheBuffer(const void* buffer, size_t length) = 0;
48 virtual OH_NN_ReturnCode SetOptions(const std::vector<std::shared_ptr<void>>& options) = 0;
[all …]
H A Dtensor_desc.h30 OH_NN_ReturnCode GetDataType(OH_NN_DataType* dataType) const;
31 OH_NN_ReturnCode SetDataType(OH_NN_DataType dataType);
33 OH_NN_ReturnCode GetFormat(OH_NN_Format* format) const;
34 OH_NN_ReturnCode SetFormat(OH_NN_Format format);
36 OH_NN_ReturnCode GetShape(int32_t** shape, size_t* shapeNum) const;
37 OH_NN_ReturnCode SetShape(const int32_t* shape, size_t shapeNum);
39 OH_NN_ReturnCode GetElementNum(size_t* elementNum) const;
40 OH_NN_ReturnCode GetByteSize(size_t* byteSize) const;
42 OH_NN_ReturnCode SetName(const char* name);
43 OH_NN_ReturnCode GetName(const char** name) const;
H A Dneural_network_core.cpp437 OH_NN_ReturnCode ret = OH_NN_SUCCESS; in SetCompilationOptions()
564 return static_cast<OH_NN_ReturnCode>(ret); in AuthenticateModel()
579 return static_cast<OH_NN_ReturnCode>(ret); in AuthenticateModel()
721 OH_NN_ReturnCode ret = OH_NN_SUCCESS; in OH_NNCompilation_Build()
1010 OH_NN_ReturnCode ret = tensorImpl->CreateData(); in OH_NNTensor_Create()
1255 return static_cast<OH_NN_ReturnCode>(ret); in Scheduling()
1271 return static_cast<OH_NN_ReturnCode>(ret); in Scheduling()
1302 return static_cast<OH_NN_ReturnCode>(ret); in SetModelId()
1430 return static_cast<OH_NN_ReturnCode>(ret); in Unload()
1631 return static_cast<OH_NN_ReturnCode>(ret); in UpdateModelLatency()
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_tensor/
H A Dnn_tensor_test.cpp89 MOCK_METHOD1(GetByteSize, OH_NN_ReturnCode(size_t*));
90 MOCK_METHOD1(SetName, OH_NN_ReturnCode(const char*));
211 OH_NN_ReturnCode ret = nnTensor->CreateData();
301 OH_NN_ReturnCode ret = nnTensor->CreateData();
329 OH_NN_ReturnCode ret = nnTensor->CreateData();
359 OH_NN_ReturnCode ret = nnTensor->CreateData();
404 OH_NN_ReturnCode ret = nnTensor->CreateData();
469 OH_NN_ReturnCode ret = nnTensor->CreateData();
538 OH_NN_ReturnCode ret = nnTensor->CreateData();
559 OH_NN_ReturnCode ret = nnTensor->CreateData();
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_compiler/
H A Dnn_compiler_test.cpp37 OH_NN_ReturnCode BuildModel(InnerModel& innerModel);
110 MOCK_METHOD0(Build, OH_NN_ReturnCode());
636 OH_NN_ReturnCode ret = nncompiler->Build();
654 OH_NN_ReturnCode ret = nncompiler->Build();
677 OH_NN_ReturnCode ret = nncompiler->Build();
680 OH_NN_ReturnCode retBuild = nncompiler->Build();
702 OH_NN_ReturnCode ret = nncompiler->Build();
736 OH_NN_ReturnCode ret = nncompiler->Build();
770 OH_NN_ReturnCode ret = nncompiler->Build();
793 OH_NN_ReturnCode ret = nncompiler->Build();
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ops/
H A Dlstm_builder.h33 OH_NN_ReturnCode Build(const std::vector<uint32_t>& paramsIndex,
40 OH_NN_ReturnCode SetBidirectional(const std::shared_ptr<NNTensor>& tensor);
41 OH_NN_ReturnCode SetHasBias(const std::shared_ptr<NNTensor>& tensor);
42 OH_NN_ReturnCode SetInputSize(const std::shared_ptr<NNTensor>& tensor);
43 OH_NN_ReturnCode SetHiddenSize(const std::shared_ptr<NNTensor>& tensor);
44 OH_NN_ReturnCode SetNumLayers(const std::shared_ptr<NNTensor>& tensor);
45 OH_NN_ReturnCode SetNumDirections(const std::shared_ptr<NNTensor>& tensor);
46 OH_NN_ReturnCode SetDropout(const std::shared_ptr<NNTensor>& tensor);
47 OH_NN_ReturnCode SetZoneoutCell(const std::shared_ptr<NNTensor>& tensor);
49 OH_NN_ReturnCode SetProjSize(const std::shared_ptr<NNTensor>& tensor);
[all …]
H A Ddetection_post_process_builder.h27 typedef OH_NN_ReturnCode (DPPBuilder::*FuncPtr)(const std::shared_ptr<NNTensor>&);
31 OH_NN_ReturnCode Build(const std::vector<uint32_t>& paramsIndex,
39 OH_NN_ReturnCode SetInputSize(const std::shared_ptr<NNTensor>& tensor);
40 OH_NN_ReturnCode SetScale(const std::shared_ptr<NNTensor>& tensor);
41 OH_NN_ReturnCode SetNmsIoUThreshold(const std::shared_ptr<NNTensor>& tensor);
42 OH_NN_ReturnCode SetNmsScoreThreshold(const std::shared_ptr<NNTensor>& tensor);
43 OH_NN_ReturnCode SetMaxDetections(const std::shared_ptr<NNTensor>& tensor);
44 OH_NN_ReturnCode SetDetectionsPerClass(const std::shared_ptr<NNTensor>& tensor);
46 OH_NN_ReturnCode SetNumClasses(const std::shared_ptr<NNTensor>& tensor);
47 OH_NN_ReturnCode SetUseRegularNms(const std::shared_ptr<NNTensor>& tensor);
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-neural-network-runtime-kit/
H A Dneural__network__core_8h.md35 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNCompilation_SetDevice](_neur…
36 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNCompilation_SetCache](_neura…
39 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNCompilation_EnableFloat16](_…
40 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNCompilation_Build](_neural_n…
57 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNTensor_Destroy](_neural_netw…
60 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNTensor_GetFd](_neural_networ…
66 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNExecutor_GetInputCount](_neu…
67 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNExecutor_GetOutputCount](_ne…
75 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNDevice_GetAllDevicesID](_neu…
76 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNDevice_GetName](_neural_netw…
[all …]
H A Dneural__network__runtime_8h.md29 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNQuantParam_SetScales](_neura…
30 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNQuantParam_SetZeroPoints](_n…
31 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNQuantParam_SetNumBits](_neur…
32 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNQuantParam_Destroy](_neural_…
34 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNModel_AddTensorToModel](_neu…
35 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNModel_SetTensorData](_neural…
40 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNModel_Finish](_neural_networ…
42 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNModel_GetAvailableOperations…
43 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNModel_AddTensor](_neural_net…
45 | [OH_NN_ReturnCode](_neural_network_runtime.md#oh_nn_returncode)[OH_NNExecutor_SetOutput](_neural_…
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_core_test/
H A Dneural_network_core_test.cpp39 OH_NN_ReturnCode ret = model.AddTensor(input1); in BuildModel()
105 MOCK_METHOD1(GetDeviceName, OH_NN_ReturnCode(std::string&));
107 MOCK_METHOD1(GetVersion, OH_NN_ReturnCode(std::string&));
114 MOCK_METHOD1(IsPrioritySupported, OH_NN_ReturnCode(bool&));
120 MOCK_METHOD3(PrepareModel, OH_NN_ReturnCode(const void*,
149 MOCK_METHOD1(DestroyTensor, OH_NN_ReturnCode(Tensor*));
1518 OH_NN_ReturnCode ret = OH_NNTensor_Destroy(&tensor);
1532 OH_NN_ReturnCode ret = OH_NNTensor_Destroy(&tensor);
1645 OH_NN_ReturnCode ret = OH_NNTensor_GetFd(tensor, fd);
1660 OH_NN_ReturnCode ret = OH_NNTensor_GetFd(tensor, fd);
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/
H A Dneural-network-runtime-guidelines.md69 | OH_NN_ReturnCode OH_NNModel_Finish(OH_NNModel *model) | 完成模型构图。|
89 | OH_NN_ReturnCode OH_NNCompilation_Build(OH_NNCompilation *compilation) | 执行模型编译。 |
107 | OH_NN_ReturnCode OH_NNTensorDesc_Destroy(NN_TensorDesc **tensorDesc) | 销毁张量描述实例。 |
121 | OH_NN_ReturnCode OH_NNTensor_Destroy(NN_Tensor **tensor) | 销毁张量实例。 |
202 OH_NN_ReturnCode SetInputData(NN_Tensor* inputTensor[], size_t inputSize)
205 OH_NN_ReturnCode ret{OH_NN_FAILED};
242 OH_NN_ReturnCode Print(NN_Tensor* outputTensor[], size_t outputSize)
245 OH_NN_ReturnCode ret{OH_NN_FAILED};
285 OH_NN_ReturnCode BuildModel(OH_NNModel** pmodel)
411 OH_NN_ReturnCode ret = OH_NNDevice_GetAllDevicesID(&devices, &deviceCount);
[all …]
/ohos5.0/docs/zh-cn/application-dev/ai/nnrt/
H A Dneural-network-runtime-guidelines.md69 | OH_NN_ReturnCode OH_NNModel_Finish(OH_NNModel *model) | 完成模型构图。|
89 | OH_NN_ReturnCode OH_NNCompilation_Build(OH_NNCompilation *compilation) | 执行模型编译。 |
107 | OH_NN_ReturnCode OH_NNTensorDesc_Destroy(NN_TensorDesc **tensorDesc) | 销毁张量描述实例。 |
121 | OH_NN_ReturnCode OH_NNTensor_Destroy(NN_Tensor **tensor) | 销毁张量实例。 |
193 OH_NN_ReturnCode SetInputData(NN_Tensor* inputTensor[], size_t inputSize)
196 OH_NN_ReturnCode ret{OH_NN_FAILED};
233 OH_NN_ReturnCode Print(NN_Tensor* outputTensor[], size_t outputSize)
236 OH_NN_ReturnCode ret{OH_NN_FAILED};
276 OH_NN_ReturnCode BuildModel(OH_NNModel** pmodel)
402 OH_NN_ReturnCode ret = OH_NNDevice_GetAllDevicesID(&devices, &deviceCount);
[all …]

12345678910>>...17