Previously we support a limited case of function type deduction and in many places we have to supply the type twice during set_body_typed (one in the template parameter, another in the lambda signature). This PR improves the deduce function by enablng automatic function signature deduction. ``` TVM_REGISTER_GLOBAL("sub") .set_body_typed([](int x, int y) -> int { return x - y; }); ``` Unfortunately, because of template conflict, we can not support the original case where both type signature and lambda are supplied through set_body_typed. This PR refactors the existing regsitration to the new style.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
contrib | Loading commit data... | |
cuda | Loading commit data... | |
graph | Loading commit data... | |
metal | Loading commit data... | |
micro | Loading commit data... | |
opencl | Loading commit data... | |
opengl | Loading commit data... | |
rocm | Loading commit data... | |
rpc | Loading commit data... | |
sgx | Loading commit data... | |
stackvm | Loading commit data... | |
vm | Loading commit data... | |
vulkan | Loading commit data... | |
builtin_fp16.cc | Loading commit data... | |
c_runtime_api.cc | Loading commit data... | |
cpu_device_api.cc | Loading commit data... | |
dso_library.cc | Loading commit data... | |
file_util.cc | Loading commit data... | |
file_util.h | Loading commit data... | |
library_module.cc | Loading commit data... | |
library_module.h | Loading commit data... | |
meta_data.h | Loading commit data... | |
module.cc | Loading commit data... | |
ndarray.cc | Loading commit data... | |
object.cc | Loading commit data... | |
object_internal.h | Loading commit data... | |
pack_args.h | Loading commit data... | |
registry.cc | Loading commit data... | |
runtime_base.h | Loading commit data... | |
system_library.cc | Loading commit data... | |
thread_pool.cc | Loading commit data... | |
thread_storage_scope.h | Loading commit data... | |
threading_backend.cc | Loading commit data... | |
workspace_pool.cc | Loading commit data... | |
workspace_pool.h | Loading commit data... |