template<
typename FType>
class tvm::NodeFunctor< FType >
A dynamically dispatched functor on the type of the first argument.
This is a class that is useful to construct polymorphic dispatching base on the AST/IR node's type.
tostr.set_dispatch<Add>([](
const ffi::ObjectRef& op, std::string
prefix) {
});
});
Expr x = MakeConst(1);
Expr y = x + x;
LOG(INFO) << tostr(x, "My");
LOG(INFO) << tostr(y, "My");
Managed reference class to IntImmNode.
Definition expr.h:504
A dynamically dispatched functor on the type of the first argument.
Definition node_functor.h:62
RAII wrapper function to enter and exit a context object similar to python's with syntax.
Definition with_context.h:59
- Template Parameters
-
| FType | function signiture This type if only defined for FType with function signature |