Name |
Last commit
|
Last update |
---|---|---|
.. | ||
micro/standalone | ||
c_backend_api.h | ||
c_runtime_api.h | ||
container.h | ||
data_type.h | ||
device_api.h | ||
memory.h | ||
module.h | ||
ndarray.h | ||
object.h | ||
packed_func.h | ||
registry.h | ||
serializer.h | ||
threading_backend.h | ||
util.h | ||
vm.h |
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 |
---|---|---|
.. | ||
micro/standalone | Loading commit data... | |
c_backend_api.h | Loading commit data... | |
c_runtime_api.h | Loading commit data... | |
container.h | Loading commit data... | |
data_type.h | Loading commit data... | |
device_api.h | Loading commit data... | |
memory.h | Loading commit data... | |
module.h | Loading commit data... | |
ndarray.h | Loading commit data... | |
object.h | Loading commit data... | |
packed_func.h | Loading commit data... | |
registry.h | Loading commit data... | |
serializer.h | Loading commit data... | |
threading_backend.h | Loading commit data... | |
util.h | Loading commit data... | |
vm.h | Loading commit data... |