I started looking into Glow compiler this week.
What is the recommended way to dump the dataflow graph for, say, the LeNet example here in dot format?
I see in Glow IR documentation:
“The compiler has a debug method for dumping a graphical representation of the graph into a dotty file. The method is called ‘dumpDAG’. The images above were generated with this method. The textual representation of the graph is less informative and it looks like this…”
However, I’m not sure I see a cmdline option to dump such a representation. Is that right? Do I need to hack it? I see that a
-dump-llvm-ir option is available to dump the LLVM-IR of the jitted code.
My objective is to understand (visually) the mapping of the high-level constructs captured by the high-level IR to the linear algebra primitives with which the low-level IR is comprised.