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`:

```c++
void VisitExpr_(const IfNode* op) final {                                       
                                                                                
                                                                                
                                                                                
                                                       
  LOG(FATAL) << "if is not supported.";                                         
                                                                                
                                           
}  
```

Also in `src/relay/backend/graph_runtime_codegen.cc`:

```c++
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.





---
[Visit 
Topic](https://discuss.tvm.ai/t/support-of-ifnode-in-graph-runtime/7142/1) to 
respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/b42256876e15207cf235fc76659dab05de6cd9916dbc40f935fe99bef9f55635).

Reply via email to