Closed jxgu1016 closed 6 years ago
You can do
output = model(input)
dot = make_dot(output, params=dict(model.named_parameters()))
dot.format = 'svg'
dot.render()
to export it as a svg file in your working directory.
And if you want to know more I recommend you checking this out.
And if you want to know more I recommend you checking this out.
To understand why graph is rendered and displayed directly one can have a look at Jupyter Notebook section of graphviz's manual.
Or any way to export the graph to image files?