Mousius commented on issue #8640:
URL: https://github.com/apache/tvm/issues/8640#issuecomment-892217549
I think this has always been the case, at least with AOT? `--system-lib=1`
also generates normal packed function prototypes without `resource_handle`:
```
TVM_DLL int32_t tvmgen_default_fused_layout_transform(TVMValue* args, int*
type_code, int num_args, TVMValue* out_value, int* out_type_code);
```
Whereas the actual operators have `resource_handle`:
```
TVM_DLL int32_t tvmgen_default_fused_layout_transform(void* args, void*
arg_type_ids, int32_t num_args, void* out_ret_value, void* out_ret_tcode, void*
resource_handle) {
```
This applies whenever you use `-system-lib=1`. I'm unsure if the correct
solution is moving the prototypes to another header or just providing the
correct prototypes in the metadata module, it doesn't seem necessary to expose
this outside of the `.c` files?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]