/ohos5.0/foundation/ai/neural_network_runtime/interfaces/kits/c/neural_network_runtime/ |
H A D | neural_network_core.h | 73 OH_NNCompilation *OH_NNCompilation_Construct(const OH_NNModel *model); 93 OH_NNCompilation *OH_NNCompilation_ConstructWithOfflineModelFile(const char *modelPath); 127 OH_NNCompilation *OH_NNCompilation_ConstructForCache(); 147 OH_NN_ReturnCode OH_NNCompilation_ExportCacheToBuffer(OH_NNCompilation *compilation, 172 OH_NN_ReturnCode OH_NNCompilation_ImportCacheFromBuffer(OH_NNCompilation *compilation, 197 OH_NN_ReturnCode OH_NNCompilation_AddExtensionConfig(OH_NNCompilation *compilation, 218 OH_NN_ReturnCode OH_NNCompilation_SetDevice(OH_NNCompilation *compilation, size_t deviceID); 279 OH_NN_ReturnCode OH_NNCompilation_SetPerformanceMode(OH_NNCompilation *compilation, 343 OH_NN_ReturnCode OH_NNCompilation_Build(OH_NNCompilation *compilation); 361 void OH_NNCompilation_Destroy(OH_NNCompilation **compilation); [all …]
|
H A D | neural_network_runtime_type.h | 68 typedef struct OH_NNCompilation OH_NNCompilation; typedef
|
/ohos5.0/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/nnrt/ |
H A D | nnrt_implementation.h | 51 OH_NNCompilation* (*OH_NNCompilation_Construct)(const OH_NNModel* model); 52 … OH_NN_ReturnCode (*OH_NNCompilation_SetCache)(OH_NNCompilation* compilation, const char* cacheDir, 54 OH_NN_ReturnCode (*OH_NNCompilation_SetPerformanceMode)(OH_NNCompilation* compilation, 56 …OH_NN_ReturnCode (*OH_NNCompilation_SetPriority)(OH_NNCompilation* compilation, OH_NN_Priority pri… 57 …OH_NN_ReturnCode (*OH_NNCompilation_EnableFloat16)(OH_NNCompilation* compilation, bool enablefloat… 58 OH_NN_ReturnCode (*OH_NNCompilation_SetDevice)(OH_NNCompilation* compilation, size_t deviceID); 59 OH_NN_ReturnCode (*OH_NNCompilation_Build)(OH_NNCompilation* compilation); 60 void (*OH_NNCompilation_Destroy)(OH_NNCompilation** compilation); 62 OH_NNExecutor* (*OH_NNExecutor_Construct)(OH_NNCompilation* compilation);
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 785 OH_NNCompilation* ret = OH_NNCompilation_Construct(model); 823 OH_NNCompilation* compilation = nullptr; 855 OH_NNCompilation* nnCompilation = nullptr; 907 OH_NNCompilation* nnCompilation = nullptr; 941 OH_NNCompilation* nnCompilation = nullptr; 975 OH_NNCompilation* nnCompilation = nullptr; 1009 OH_NNCompilation* nnCompilation = nullptr; 1039 OH_NNCompilation** pCompilation = nullptr; 1051 OH_NNCompilation* compilation = nullptr; 1052 OH_NNCompilation** pCompilation = &compilation; [all …]
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_core_test/ |
H A D | neural_network_core_test.cpp | 441 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); 469 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); 486 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); 503 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); 520 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); 536 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); 552 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); 588 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); 604 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); 620 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-neural-network-runtime-kit/ |
H A D | neural__network__core_8h.md | 28 …OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) \* [OH_NNCompilation_Construct](_ne… 29 | [OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) \* [OH_NNCompilation_ConstructWit… 30 | [OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) \* [OH_NNCompilation_ConstructWit… 31 | [OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) \* [OH_NNCompilation_ConstructFor… 33 …neural_network_runtime.md#oh_nncompilation_importcachefrombuffer) ([OH_NNCompilation](_neural_netw… 35 …SetDevice](_neural_network_runtime.md#oh_nncompilation_setdevice) ([OH_NNCompilation](_neural_netw… 36 …n_SetCache](_neural_network_runtime.md#oh_nncompilation_setcache) ([OH_NNCompilation](_neural_netw… 39 …oat16](_neural_network_runtime.md#oh_nncompilation_enablefloat16) ([OH_NNCompilation](_neural_netw… 40 …ilation_Build](_neural_network_runtime.md#oh_nncompilation_build) ([OH_NNCompilation](_neural_netw… 41 …ion_Destroy](_neural_network_runtime.md#oh_nncompilation_destroy) ([OH_NNCompilation](_neural_netw… [all …]
|
H A D | _neural_network_runtime.md | 38 | typedef struct [OH_NNCompilation](#oh_nncompilation) [OH_NNCompilation](#oh_nncompilation) | 编译器… 432 ### OH_NNCompilation subsection 435 typedef struct OH_NNCompilation OH_NNCompilation 1005 创建[OH_NNCompilation](#oh_nncompilation)类型的编译实例。 1031 指向[OH_NNCompilation](#oh_nncompilation)实例的指针,如果创建失败就返回NULL。 1037 OH_NNCompilation *OH_NNCompilation_ConstructForCache () 1054 指向[OH_NNCompilation](#oh_nncompilation)实例的指针,如果创建失败就返回NULL。 1069 注意:返回的[OH_NNCompilation](#oh_nncompilation)实例只将**modelBuffer**指针保存在里面,而不是复制其数据。 在销毁[OH_NNCompilatio… 1082 指向[OH_NNCompilation](#oh_nncompilation)实例的指针,如果创建失败就返回NULL。 1111 指向[OH_NNCompilation](#oh_nncompilation)实例的指针,如果创建失败就返回NULL。 [all …]
|
H A D | _neural_nework_runtime.md | 38 | typedef struct [OH_NNCompilation](#oh_nncompilation) [OH_NNCompilation](#oh_nncompilation) | 编译器… 432 ### OH_NNCompilation subsection 435 typedef struct OH_NNCompilation OH_NNCompilation 1005 创建[OH_NNCompilation](#oh_nncompilation)类型的编译实例。 1031 指向[OH_NNCompilation](#oh_nncompilation)实例的指针,如果创建失败就返回NULL。 1037 OH_NNCompilation *OH_NNCompilation_ConstructForCache () 1054 指向[OH_NNCompilation](#oh_nncompilation)实例的指针,如果创建失败就返回NULL。 1069 注意:返回的[OH_NNCompilation](#oh_nncompilation)实例只将**modelBuffer**指针保存在里面,而不是复制其数据。 在销毁[OH_NNCompilatio… 1082 指向[OH_NNCompilation](#oh_nncompilation)实例的指针,如果创建失败就返回NULL。 1111 指向[OH_NNCompilation](#oh_nncompilation)实例的指针,如果创建失败就返回NULL。 [all …]
|
H A D | neural__network__runtime__type_8h.md | 37 | typedef struct [OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) [OH_NNCompilation…
|
/ohos5.0/foundation/ai/neural_network_runtime/ |
H A D | neural-network-runtime-guidelines.md | 54 | typedef struct OH_NNCompilation OH_NNCompilation | Neural Network Runtime的编译器句柄,用于编译AI模型。 | 77 | OH_NNCompilation *OH_NNCompilation_Construct(const OH_NNModel *model) | 基于模型实例创建OH_NNCompilation类… 78 | OH_NNCompilation *OH_NNCompilation_ConstructWithOfflineModelFile(const char *modelPath) | 基于离线模型文… 79 | OH_NNCompilation *OH_NNCompilation_ConstructWithOfflineModelBuffer(const void *modelBuffer, size_… 80 | OH_NNCompilation *OH_NNCompilation_ConstructForCache() | 创建一个空的编译实例,以便稍后从模型缓存中恢复。 | 89 | OH_NN_ReturnCode OH_NNCompilation_Build(OH_NNCompilation *compilation) | 执行模型编译。 | 90 | void OH_NNCompilation_Destroy(OH_NNCompilation **compilation) | 销毁编译实例。 | 428 OH_NNCompilation** pCompilation) 431 OH_NNCompilation* compilation = OH_NNCompilation_Construct(model); 468 OH_NNExecutor* CreateExecutor(OH_NNCompilation* compilation) [all …]
|
/ohos5.0/docs/zh-cn/application-dev/ai/nnrt/ |
H A D | neural-network-runtime-guidelines.md | 54 | typedef struct OH_NNCompilation OH_NNCompilation | Neural Network Runtime的编译器句柄,用于编译AI模型。 | 77 | OH_NNCompilation *OH_NNCompilation_Construct(const OH_NNModel *model) | 基于模型实例创建OH_NNCompilation类… 78 | OH_NNCompilation *OH_NNCompilation_ConstructWithOfflineModelFile(const char *modelPath) | 基于离线模型文… 79 | OH_NNCompilation *OH_NNCompilation_ConstructWithOfflineModelBuffer(const void *modelBuffer, size_… 80 | OH_NNCompilation *OH_NNCompilation_ConstructForCache() | 创建一个空的编译实例,以便稍后从模型缓存中恢复。 | 89 | OH_NN_ReturnCode OH_NNCompilation_Build(OH_NNCompilation *compilation) | 执行模型编译。 | 90 | void OH_NNCompilation_Destroy(OH_NNCompilation **compilation) | 销毁编译实例。 | 419 OH_NNCompilation** pCompilation) 422 OH_NNCompilation* compilation = OH_NNCompilation_Construct(model); 459 OH_NNExecutor* CreateExecutor(OH_NNCompilation* compilation) [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-neural-network-runtime-kit/ |
H A D | neural__network__core_8h.md | 28 …OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) \* [OH_NNCompilation_Construct](_ne… 29 | [OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) \* [OH_NNCompilation_ConstructWit… 30 | [OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) \* [OH_NNCompilation_ConstructWit… 31 | [OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) \* [OH_NNCompilation_ConstructFor… 33 …neural_network_runtime.md#oh_nncompilation_importcachefrombuffer) ([OH_NNCompilation](_neural_netw… 35 …SetDevice](_neural_network_runtime.md#oh_nncompilation_setdevice) ([OH_NNCompilation](_neural_netw… 36 …n_SetCache](_neural_network_runtime.md#oh_nncompilation_setcache) ([OH_NNCompilation](_neural_netw… 39 …oat16](_neural_network_runtime.md#oh_nncompilation_enablefloat16) ([OH_NNCompilation](_neural_netw… 40 …ilation_Build](_neural_network_runtime.md#oh_nncompilation_build) ([OH_NNCompilation](_neural_netw… 41 …oy) ([OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) \*\*compilation) | Destroys a… [all …]
|
H A D | _neural_network_runtime.md | 38 | typedef struct [OH_NNCompilation](#oh_nncompilation) [OH_NNCompilation](#oh_nncompilation) | Com… 432 ### OH_NNCompilation subsection 435 typedef struct OH_NNCompilation OH_NNCompilation 962 | compilation | Pointer to the [OH_NNCompilation](#oh_nncompilation) instance.| 975 OH_NN_ReturnCode OH_NNCompilation_Build (OH_NNCompilation *compilation) 990 | compilation | Pointer to the [OH_NNCompilation](#oh_nncompilation) instance.| 1000 OH_NNCompilation *OH_NNCompilation_Construct (const OH_NNModel *model) 1037 OH_NNCompilation *OH_NNCompilation_ConstructForCache () 1117 void OH_NNCompilation_Destroy (OH_NNCompilation **compilation) 1159 | compilation | Pointer to the [OH_NNCompilation](#oh_nncompilation) instance.| [all …]
|
H A D | neural__network__runtime__type_8h.md | 37 | typedef struct [OH_NNCompilation](_neural_network_runtime.md#oh_nncompilation) [OH_NNCompilation…
|
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/ |
H A D | neural_network_core.cpp | 115 NNRT_API OH_NNCompilation *OH_NNCompilation_Construct(const OH_NNModel *model) in OH_NNCompilation_Construct() 130 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); in OH_NNCompilation_Construct() 148 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); in OH_NNCompilation_ConstructWithOfflineModelFile() 173 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); in OH_NNCompilation_ConstructWithOfflineModelBuffer() 178 NNRT_API OH_NNCompilation *OH_NNCompilation_ConstructForCache() in OH_NNCompilation_ConstructForCache() 186 OH_NNCompilation* nnCompilation = reinterpret_cast<OH_NNCompilation*>(compilation); in OH_NNCompilation_ConstructForCache() 255 NNRT_API OH_NN_ReturnCode OH_NNCompilation_AddExtensionConfig(OH_NNCompilation *compilation, in OH_NNCompilation_AddExtensionConfig() 320 NNRT_API OH_NN_ReturnCode OH_NNCompilation_SetCache(OH_NNCompilation *compilation, in OH_NNCompilation_SetCache() 701 NNRT_API OH_NN_ReturnCode OH_NNCompilation_Build(OH_NNCompilation *compilation) in OH_NNCompilation_Build() 769 NNRT_API void OH_NNCompilation_Destroy(OH_NNCompilation **compilation) in OH_NNCompilation_Destroy() [all …]
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 838 OH_NNCompilation* ret = OH_NNCompilation_Construct(model); 876 OH_NNCompilation* compilation = nullptr; 908 OH_NNCompilation* nnCompilation = nullptr; 960 OH_NNCompilation* nnCompilation = nullptr; 994 OH_NNCompilation* nnCompilation = nullptr; 1028 OH_NNCompilation* nnCompilation = nullptr; 1062 OH_NNCompilation* nnCompilation = nullptr; 1092 OH_NNCompilation** pCompilation = nullptr; 1104 OH_NNCompilation* compilation = nullptr; 1105 OH_NNCompilation** pCompilation = &compilation; [all …]
|
/ohos5.0/docs/en/application-dev/ai/nnrt/ |
H A D | neural-network-runtime-guidelines.md | 54 | typedef struct OH_NNCompilation OH_NNCompilation | Compiler handle of NNRt. It is used to compile… 77 | OH_NNCompilation *OH_NNCompilation_Construct(const OH_NNModel *model) | Creates an **OH_NNCompila… 78 | OH_NNCompilation *OH_NNCompilation_ConstructWithOfflineModelFile(const char *modelPath) | Creates… 79 | OH_NNCompilation *OH_NNCompilation_ConstructWithOfflineModelBuffer(const void *modelBuffer, size_… 89 | OH_NN_ReturnCode OH_NNCompilation_Build(OH_NNCompilation *compilation) | Performs model building.| 90 | void OH_NNCompilation_Destroy(OH_NNCompilation **compilation) | Destroys a model building instanc… 419 OH_NNCompilation** pCompilation) 422 OH_NNCompilation* compilation = OH_NNCompilation_Construct(model); 459 OH_NNExecutor* CreateExecutor(OH_NNCompilation* compilation) 461 // Create an executor based on the specified OH_NNCompilation instance. [all …]
|
/ohos5.0/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/delegates/nnrt_delegate/ |
H A D | nnrt_delegate_kernel.h | 92 OH_NNCompilation* m_pNnCompilation;
|
/ohos5.0/foundation/ai/neural_network_runtime/test/system_test/common/ |
H A D | nnrt_test.h | 75 OH_NNCompilation* m_compilation{nullptr};
|
/ohos5.0/foundation/ai/neural_network_runtime/test/system_test/ |
H A D | end_to_end_test.cpp | 378 OH_NNCompilation* compilationCacheExporter = OH_NNCompilation_Construct(m_model);
|