Hi,
I was wondering how to generate the PyTorch IR for a Torch Script module with line numbers, like the one shown in the example code:

  
      github.com
  
  
    pytorch/pytorch/blob/master/docs/source/jit.rst#interpreting-graphs 3
TorchScript
===========

.. toctree::
   :maxdepth: 1
   :caption: Builtin Functions
   :hidden:

   torch.jit.supported_ops <jit_builtin_functions>

.. contents:: :local:

.. automodule:: torch.jit
.. currentmodule:: torch.jit

TorchScript is a way to create serializable and optimizable models from PyTorch code.
Any TorchScript program can be saved from a Python
process and loaded in a process where there is no Python dependency.

We provide tools to incrementally transition a model from a pure Python program


  This file has been truncated. show original

  
  
    
    
  
  


Currently, foo.graph does not get you the IR with line numbers, so I was wondering if it was possible to get the IR with the line numbers included.
Thank you!