@@ -131,35 +131,6 @@ typedef uint32_t graph_execution_context;
131131
132132/* Definition of 'wasi_nn.h' structs in WASM app format (using offset) */
133133
134- typedef wasi_nn_error (* LOAD )(void * , graph_builder_array * , graph_encoding ,
135- execution_target , graph * );
136- typedef wasi_nn_error (* LOAD_BY_NAME )(void * , const char * , uint32_t , graph * );
137- typedef wasi_nn_error (* LOAD_BY_NAME_WITH_CONFIG )(void * , const char * ,
138- uint32_t , void * , uint32_t ,
139- graph * );
140- typedef wasi_nn_error (* INIT_EXECUTION_CONTEXT )(void * , graph ,
141- graph_execution_context * );
142- typedef wasi_nn_error (* SET_INPUT )(void * , graph_execution_context , uint32_t ,
143- tensor * );
144- typedef wasi_nn_error (* COMPUTE )(void * , graph_execution_context );
145- typedef wasi_nn_error (* GET_OUTPUT )(void * , graph_execution_context , uint32_t ,
146- tensor_data , uint32_t * );
147- /* wasi-nn general APIs */
148- typedef wasi_nn_error (* BACKEND_INITIALIZE )(void * * );
149- typedef wasi_nn_error (* BACKEND_DEINITIALIZE )(void * );
150-
151- typedef struct {
152- LOAD load ;
153- LOAD_BY_NAME load_by_name ;
154- LOAD_BY_NAME_WITH_CONFIG load_by_name_with_config ;
155- INIT_EXECUTION_CONTEXT init_execution_context ;
156- SET_INPUT set_input ;
157- COMPUTE compute ;
158- GET_OUTPUT get_output ;
159- BACKEND_INITIALIZE init ;
160- BACKEND_DEINITIALIZE deinit ;
161- } api_function ;
162-
163134#ifdef __cplusplus
164135}
165136#endif
0 commit comments