[TVM Discuss] [Development/RFC] [RFC] Visualizing Relay program as graph

2020-06-19 Thread Thomas V via TVM Discuss
I'm currently working with a signature of `visualize(expr, collapse_small=True, node_attr_dict = {})` where `node_attr_dict` is `Expr->Dict[str, str]` with kwargs for node. (And yeah, I know about the lint-complaint regarding mutuable objects as default values.) --- [Visit Topic](https:/

[TVM Discuss] [Development/RFC] [RFC] Visualizing Relay program as graph

2020-06-19 Thread masahi via TVM Discuss
One use case I have for a visualizer is to visualize the partitioning output in BYOC flow. Right now I'd check the output by eye-balling the text rep, but I wish there could be easier way than that. It would be great if I could visualize the entire graph, with partitioned functions color cod

[TVM Discuss] [Development/RFC] [RFC] Visualizing Relay program as graph

2020-06-19 Thread Thomas V via TVM Discuss
I'm a bit hesitant to comment here, but it looks like the PR from this discussion is stalled. I wonder if part of that is that the RelayViz abstraction is too ambitious at this point. I got to this question after I have been looking at adapting the visualization from the starting from the PR

[TVM Discuss] [Development/RFC] [RFC] Visualizing Relay program as graph

2020-04-11 Thread JC Li via TVM Discuss
Thanks for the great proposal. @hcho3, I followed your [script in github](https://github.com/hcho3/relayviz) and noticed it missed a case when operator being "Call"ed is a function. Adding some code within "Call" condition can generate graph with each function singled out. ```