You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "zhang hao (4paradigm) via TVM Discuss" <no...@discuss.tvm.ai> on 2020/07/01 01:23:06 UTC

[TVM Discuss] [Questions] Support of IfNode in graph runtime


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).

[TVM Discuss] [Questions] Support of IfNode in graph runtime

Posted by "zhang hao (4paradigm) via TVM Discuss" <no...@discuss.tvm.ai>.

Thanks @comaniac for your suggestion. I tried VM, but got segmentation fault when trying to run in VTA (just simulation). Struggle a while to debug, but does not figure it out. In addition, it seems VM does not support heterogenous execution. 

So just wonder if there are lots of works to support IfNode in graph runtime.





---
[Visit Topic](https://discuss.tvm.ai/t/support-of-ifnode-in-graph-runtime/7142/3) 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/907abf9939cc92cc77a60ae0ec4eabff4411a522dee8a7f46715d774f7b0ce28).