mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-15 08:48:33 +00:00
feat: "set input"
This commit is contained in:
parent
bb2c963a34
commit
be33067436
|
@ -43,3 +43,15 @@ _load(graph_builder_array builder, graph_encoding encoding)
|
|||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
uint32_t set_input()
|
||||
{
|
||||
|
||||
for (int i=0 ; i<input_tensor.size() ; i++ )
|
||||
{
|
||||
input[i]= input_tensor[i];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -46,15 +46,16 @@ void
|
|||
wasi_nn_init_execution_context()
|
||||
{}
|
||||
|
||||
void
|
||||
wasi_nn_set_input()
|
||||
void wasi_nn_set_input(wasm_exec_env_t exec_env ,graph_execution_context context, uint32_t index, tensor tensor)
|
||||
{
|
||||
printf("Inside wasi_nn_set_input!\n\n");
|
||||
|
||||
// interpreter->AllocateTensors();
|
||||
}
|
||||
|
||||
void
|
||||
wasi_nn_compute()
|
||||
{}
|
||||
|
||||
void wasi_nn_compute()
|
||||
{
|
||||
|
||||
void
|
||||
wasi_nn_get_output()
|
||||
|
|
|
@ -10,7 +10,14 @@
|
|||
|
||||
typedef uint32_t buffer_size;
|
||||
|
||||
typedef enum { success = 0, invalid_argument, missing_memory, busy } nn_erno;
|
||||
typedef uint32_t graph_execution_context;
|
||||
|
||||
typedef enum {
|
||||
success = 0,
|
||||
invalid_argument,
|
||||
missing_memory,
|
||||
busy
|
||||
} nn_erno;
|
||||
|
||||
typedef uint32_t *tensor_dimensions;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user