Name |
Last commit
|
Last update |
---|---|---|
.. | ||
adt.cc | ||
alpha_equal.cc | ||
base.cc | ||
doc.cc | ||
doc.h | ||
error.cc | ||
expr.cc | ||
expr_functor.cc | ||
hash.cc | ||
module.cc | ||
op.cc | ||
pattern_functor.cc | ||
pretty_printer.cc | ||
type.cc | ||
type_functor.cc | ||
type_functor.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 |
---|---|---|
.. | ||
adt.cc | Loading commit data... | |
alpha_equal.cc | Loading commit data... | |
base.cc | Loading commit data... | |
doc.cc | Loading commit data... | |
doc.h | Loading commit data... | |
error.cc | Loading commit data... | |
expr.cc | Loading commit data... | |
expr_functor.cc | Loading commit data... | |
hash.cc | Loading commit data... | |
module.cc | Loading commit data... | |
op.cc | Loading commit data... | |
pattern_functor.cc | Loading commit data... | |
pretty_printer.cc | Loading commit data... | |
type.cc | Loading commit data... | |
type_functor.cc | Loading commit data... | |
type_functor.h | Loading commit data... |