Name |
Last commit
|
Last update |
---|---|---|
.. | ||
algorithm | ||
annotation | ||
image | ||
memory | ||
nn | ||
tensor | ||
vision | ||
debug.cc | ||
device_copy.cc | ||
op_common.h | ||
type_relations.cc | ||
type_relations.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 |
---|---|---|
.. | ||
algorithm | Loading commit data... | |
annotation | Loading commit data... | |
image | Loading commit data... | |
memory | Loading commit data... | |
nn | Loading commit data... | |
tensor | Loading commit data... | |
vision | Loading commit data... | |
debug.cc | Loading commit data... | |
device_copy.cc | Loading commit data... | |
op_common.h | Loading commit data... | |
type_relations.cc | Loading commit data... | |
type_relations.h | Loading commit data... |