Define TVM_FFI_VISIT_BEGIN

Define TVM_FFI_VISIT_BEGIN#

Define Documentation#

TVM_FFI_VISIT_BEGIN()#

Begin a visit try block.

Must be paired with TVM_FFI_VISIT_END(node) at the end of the visit body. Expands to an open try { — a mismatched _END macro is a compile error (unclosed try block).

void MyVisitor::VisitNode(const ObjectRef& node) {
  TVM_FFI_VISIT_BEGIN();
  DispatchVisit(node);
  TVM_FFI_VISIT_END(node);
}