mehrdadh opened a new issue #8049:
URL: https://github.com/apache/tvm/issues/8049


   Using AOT runtime with C codegen generates two library files: `lib0.c` and 
`lib1.c`
   `lib0.c` includes function declarations for aot runtime. When I use AOT with 
 micro target it generates `tvm__run_func` function signature twice as shown 
below:
   
   ```
   ...
   TVM_DLL int32_t tvm__run_func(TVMValue* args, int* type_code, int num_args, 
TVMValue* out_value, int* out_type_code);
   static TVMBackendPackedCFunc _tvm_func_array[] = {
       
(TVMBackendPackedCFunc)fused_nn_conv2d_add_cast_multiply_add_right_shift_cast_add_clip_cast_clip_cast_s_9959535092109263429__1,
       (TVMBackendPackedCFunc)fused_reshape_cast_subtract,
       
(TVMBackendPackedCFunc)fused_nn_contrib_dense_pack_add_fixed_point_multiply_add_clip_cast_cast_subtract_14669711146056581479_,
       
(TVMBackendPackedCFunc)fused_nn_conv2d_add_cast_multiply_add_right_shift_cast_add_clip_cast_clip_cast_s_9959535092109263429_,
       (TVMBackendPackedCFunc)fused_cast_subtract,
       (TVMBackendPackedCFunc)fused_nn_avg_pool2d_cast,
       (TVMBackendPackedCFunc)fused_nn_softmax,
       
(TVMBackendPackedCFunc)fused_nn_conv2d_add_cast_multiply_add_right_shift_cast_add_clip_cast_clip_cast,
       (TVMBackendPackedCFunc)fused_divide_add_round_cast_clip_cast,
       
(TVMBackendPackedCFunc)fused_nn_conv2d_add_cast_multiply_add_right_shift_cast_add_clip_cast_clip_cast_s_9959535092109263429__2,
       (TVMBackendPackedCFunc)_lookup_linked_param,
       (TVMBackendPackedCFunc)tvm__run_func,
   };
   ...
   
   TVM_DLL int32_t tvm__run_func(void* args, void* type_code, int num_args, 
void* out_value, void* out_type_code, void* resource_handle);
   ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to