When there is an IfNode in the model, it will raise if is not supported
errror. I saw the error comes from src/relay/backend/graph_plan_memory.cc
:
void VisitExpr_(const IfNode* op) final {
LOG(FATAL) << "if is not supported.";
}
Also in src/relay/backend/graph_runtime_codegen.cc
:
std::vector<GraphNodeRef> VisitExpr_(const IfNode* op) override {
throw std::invalid_argument("if not supported");
return {};
}
Is it possible to implement these for IfNode? Any ideas are appreciated. Thanks.