|
@@ -3,15 +3,26 @@
|
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-#ifndef WASI_NN_OPENVINO_HPP
|
|
|
|
|
-#define WASI_NN_OPENVINO_HPP
|
|
|
|
|
|
|
+#ifndef WASI_NN_BACKEND_H
|
|
|
|
|
+#define WASI_NN_BACKEND_H
|
|
|
|
|
|
|
|
#include "wasi_nn_types.h"
|
|
#include "wasi_nn_types.h"
|
|
|
|
|
|
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
|
+extern "C" {
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
__attribute__((visibility("default"))) wasi_nn_error
|
|
__attribute__((visibility("default"))) wasi_nn_error
|
|
|
load(void *ctx, graph_builder_array *builder, graph_encoding encoding,
|
|
load(void *ctx, graph_builder_array *builder, graph_encoding encoding,
|
|
|
execution_target target, graph *g);
|
|
execution_target target, graph *g);
|
|
|
|
|
|
|
|
|
|
+__attribute__((visibility("default"))) wasi_nn_error
|
|
|
|
|
+load_by_name(void *tflite_ctx, const char *name, uint32_t namelen, graph *g);
|
|
|
|
|
+
|
|
|
|
|
+__attribute__((visibility("default"))) wasi_nn_error
|
|
|
|
|
+load_by_name_with_config(void *ctx, const char *name, uint32_t namelen,
|
|
|
|
|
+ const char *config, uint32_t config_len, graph *g);
|
|
|
|
|
+
|
|
|
__attribute__((visibility("default"))) wasi_nn_error
|
|
__attribute__((visibility("default"))) wasi_nn_error
|
|
|
init_execution_context(void *ctx, graph g, graph_execution_context *exec_ctx);
|
|
init_execution_context(void *ctx, graph g, graph_execution_context *exec_ctx);
|
|
|
|
|
|
|
@@ -32,4 +43,8 @@ init_backend(void **ctx);
|
|
|
__attribute__((visibility("default"))) wasi_nn_error
|
|
__attribute__((visibility("default"))) wasi_nn_error
|
|
|
deinit_backend(void *ctx);
|
|
deinit_backend(void *ctx);
|
|
|
|
|
|
|
|
-#endif /* WASI_NN_OPENVINO_HPP */
|
|
|
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
|
+}
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
|
|
+#endif /* WASI_NN_BACKEND_H */
|