How to print torch.compile'd graph?

This tutorial has some good examples of how to get the relevant fx and aten IR from a torch program Google Colab

As far as getting the actual IRs that inductor they should be printed here if running with debug flag pytorch/compile_fx.py at main · pytorch/pytorch · GitHub