diff --git a/frameworks/BUILD.gn b/frameworks/BUILD.gn index 3263b30744e34976720faff11bc66a5581618490..b5dee031f3af52d41e82f21a664ac013d72234ab 100644 --- a/frameworks/BUILD.gn +++ b/frameworks/BUILD.gn @@ -106,6 +106,7 @@ ops_sources = [ ohos_shared_library("libneural_network_runtime") { sources = nnrt_sources sources += ops_sources + output_extension = "so" include_dirs = [ "..", "//third_party/mindspore/mindspore-src/source/mindspore/lite/mindir/include", @@ -130,6 +131,6 @@ ohos_shared_library("libneural_network_runtime") { ] subsystem_name = "ai" - innerapi_tags = [ "platformsdk_indirect" ] + innerapi_tags = [ "ndk" ] part_name = "neural_network_runtime" } diff --git a/interfaces/kits/c/BUILD.gn b/interfaces/kits/c/BUILD.gn index db9a140e4019dfb32452c3fc342692f682b24166..856097adcf97de1304cc37f8b1fdf2fa03d4382e 100644 --- a/interfaces/kits/c/BUILD.gn +++ b/interfaces/kits/c/BUILD.gn @@ -14,21 +14,21 @@ import("//build/ohos.gni") ohos_ndk_library("libneural_network_runtime_ndk") { - output_name = "neural_network_runtime.z" - output_extension = "so" - ndk_description_file = "libneural_network_runtime.ndk.json" - min_compact_version = "9" - system_capability = "SystemCapability.AI.NeuralNetworkRuntime" - system_capability_headers = [ - "neural_network_runtime.h", - "neural_network_runtime_type.h", - ] + output_name = "neural_network_runtime" + output_extension = "so" + ndk_description_file = "libneural_network_runtime.ndk.json" + min_compact_version = "9" + system_capability = "SystemCapability.AI.NeuralNetworkRuntime" + system_capability_headers = [ + "neural_network_runtime.h", + "neural_network_runtime_type.h", + ] } ohos_ndk_headers("libneural_network_runtime_header") { - dest_dir = "$ndk_headers_out_dir/neural_network_runtime" - sources = [ - "neural_network_runtime.h", - "neural_network_runtime_type.h", - ] -} \ No newline at end of file + dest_dir = "$ndk_headers_out_dir/neural_network_runtime" + sources = [ + "neural_network_runtime.h", + "neural_network_runtime_type.h", + ] +} diff --git a/interfaces/kits/c/neural_network_runtime.h b/interfaces/kits/c/neural_network_runtime.h index b5cc5e2fbe56aecd45b3f22abec414b80cd5bdd9..b7740e18b332cf62ae3e71445f2e79965194699d 100644 --- a/interfaces/kits/c/neural_network_runtime.h +++ b/interfaces/kits/c/neural_network_runtime.h @@ -31,6 +31,7 @@ * to construct and compile models and perform inference and computing on acceleration hardware. * Note: Currently, the APIs of Neural Network Runtime do not support multi-thread calling. \n * + * @library libneural_network_runtime.so * @since 9 * @version 1.0 */ diff --git a/interfaces/kits/c/neural_network_runtime_type.h b/interfaces/kits/c/neural_network_runtime_type.h index 3bbbb4c528ffe81b10f8c8e73a8fd0c6980d2088..00aefb6562d55ee218615a0a923c6e90423bc633 100644 --- a/interfaces/kits/c/neural_network_runtime_type.h +++ b/interfaces/kits/c/neural_network_runtime_type.h @@ -28,7 +28,8 @@ * @file neural_network_runtime_type.h * * @brief Defines the structure and enumeration for Neural Network Runtime. - * + * + * @library libneural_network_runtime.so * @since 9 * @version 1.0 */