How to visualize GraphModule

Hi all,

I want to visualize the torch.fx.GraphModule , how to do it?

You could give torchviz a go and see if that works?

1 Like

You can use this: pytorch/graph_drawer.py at master · pytorch/pytorch · GitHub

1 Like

Thank you so much, it worked for me.