Hi,
Is there any way to convert a torch._C.Graph text like this

image630×526 15.9 KB

generated by torch.jit.trace(model, input) directly into .dot language used by networkX, GraphViz, etc. like this
  

      en.wikipedia.org
  

  
    

DOT (graph description language)

DOT is a graph description language. DOT graphs are typically files with the filename extension gv or dot. The extension gv is preferred, to avoid confusion with the extension dot used by versions of Microsoft Word before 2007.
 Various programs can process DOT files.  Some, such as dot, neato, twopi, circo, fdp, and sfdp, can read a DOT file and render it in graphical form.  Others, such as gvpr, gc, acyclic, ccomps, sccmap, and tred, read DOT files and perform calculations on the represented gr...

  

  
    
    
  

  


Thank you