Name |
Last commit
|
Last update |
---|---|---|
.. | ||
contrib | ||
vm | ||
build_module.cc | ||
compile_engine.cc | ||
compile_engine.h | ||
graph_plan_memory.cc | ||
graph_runtime_codegen.cc | ||
interpreter.cc | ||
param_dict.cc | ||
param_dict.h | ||
utils.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 |
---|---|---|
.. | ||
contrib | Loading commit data... | |
vm | Loading commit data... | |
build_module.cc | Loading commit data... | |
compile_engine.cc | Loading commit data... | |
compile_engine.h | Loading commit data... | |
graph_plan_memory.cc | Loading commit data... | |
graph_runtime_codegen.cc | Loading commit data... | |
interpreter.cc | Loading commit data... | |
param_dict.cc | Loading commit data... | |
param_dict.h | Loading commit data... | |
utils.h | Loading commit data... |