mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-04-18 18:18:44 +00:00
Remove "encoding" for load_by_name
This commit is contained in:
parent
7b62ec8252
commit
01641bfc70
|
|
@ -651,7 +651,7 @@ wasi_nn_load_by_name(wasm_exec_env_t exec_env, char *name, uint32_t name_len,
|
|||
"Model is not yet loaded, will add to global context");
|
||||
call_wasi_nn_func(wasi_nn_ctx->backend, load_by_name, res,
|
||||
wasi_nn_ctx->backend_ctx, global_model_path_i,
|
||||
strlen(global_model_path_i), encoding, target, g);
|
||||
strlen(global_model_path_i), target, g);
|
||||
if (res != success)
|
||||
goto fail;
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ load(void *ctx, graph_builder_array *builder, graph_encoding encoding,
|
|||
|
||||
__attribute__((visibility("default"))) wasi_nn_error
|
||||
load_by_name(void *tflite_ctx, const char *name, uint32_t namelen,
|
||||
graph_encoding encoding, execution_target target, graph *g);
|
||||
execution_target target, graph *g);
|
||||
|
||||
__attribute__((visibility("default"))) wasi_nn_error
|
||||
load_by_name_with_config(void *ctx, const char *name, uint32_t namelen,
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@ __load_by_name_with_configuration(void *ctx, const char *filename, graph *g)
|
|||
|
||||
__attribute__((visibility("default"))) wasi_nn_error
|
||||
load_by_name(void *ctx, const char *filename, uint32_t filename_len,
|
||||
graph_encoding encoding, execution_target target, graph *g)
|
||||
execution_target target, graph *g)
|
||||
{
|
||||
struct LlamaContext *backend_ctx = (struct LlamaContext *)ctx;
|
||||
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ load(void *onnx_ctx, graph_builder_array *builder, graph_encoding encoding,
|
|||
|
||||
__attribute__((visibility("default"))) wasi_nn_error
|
||||
load_by_name(void *onnx_ctx, const char *name, uint32_t filename_len,
|
||||
graph_encoding encoding, execution_target target, graph *g)
|
||||
execution_target target, graph *g)
|
||||
{
|
||||
if (!onnx_ctx) {
|
||||
return runtime_error;
|
||||
|
|
|
|||
|
|
@ -307,7 +307,7 @@ fail:
|
|||
|
||||
__attribute__((visibility("default"))) wasi_nn_error
|
||||
load_by_name(void *ctx, const char *filename, uint32_t filename_len,
|
||||
graph_encoding encoding, execution_target target, graph *g)
|
||||
execution_target target, graph *g)
|
||||
{
|
||||
OpenVINOContext *ov_ctx = (OpenVINOContext *)ctx;
|
||||
struct OpenVINOGraph *graph;
|
||||
|
|
|
|||
|
|
@ -22,8 +22,7 @@ typedef struct {
|
|||
typedef wasi_nn_error (*LOAD)(void *, graph_builder_array *, graph_encoding,
|
||||
execution_target, graph *);
|
||||
typedef wasi_nn_error (*LOAD_BY_NAME)(void *, const char *, uint32_t,
|
||||
graph_encoding, execution_target,
|
||||
graph *);
|
||||
execution_target, graph *);
|
||||
typedef wasi_nn_error (*LOAD_BY_NAME_WITH_CONFIG)(void *, const char *,
|
||||
uint32_t, void *, uint32_t,
|
||||
graph *);
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ load(void *tflite_ctx, graph_builder_array *builder, graph_encoding encoding,
|
|||
|
||||
__attribute__((visibility("default"))) wasi_nn_error
|
||||
load_by_name(void *tflite_ctx, const char *filename, uint32_t filename_len,
|
||||
graph_encoding encoding, execution_target target, graph *g)
|
||||
execution_target target, graph *g)
|
||||
{
|
||||
TFLiteContext *tfl_ctx = (TFLiteContext *)tflite_ctx;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user