Name |
Last commit
|
Last update |
---|---|---|
.. | ||
api_arith.cc | ||
api_base.cc | ||
api_codegen.cc | ||
api_ir.cc | ||
api_lang.cc | ||
api_pass.cc | ||
api_schedule.cc | ||
api_test.cc |
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 |
---|---|---|
.. | ||
api_arith.cc | Loading commit data... | |
api_base.cc | Loading commit data... | |
api_codegen.cc | Loading commit data... | |
api_ir.cc | Loading commit data... | |
api_lang.cc | Loading commit data... | |
api_pass.cc | Loading commit data... | |
api_schedule.cc | Loading commit data... | |
api_test.cc | Loading commit data... |