
    קg-                         d dl Z d Zd ZdS )    Nc                     t          | t          j                  rd| j         d| j         d| j         dS t          |           S )zD
    Helper function to print out debug info in a friendly way.
    zTensor(z, grad=z, dtype=))
isinstancetorchTensorshaperequires_graddtypestr)vs    _/var/www/html/ai-engine/env/lib/python3.11/site-packages/torch/distributed/pipelining/_debug.pyfriendly_debug_infor      sJ     !U\"" LLLLL!'LLLL1vv    c                 V    t           j        j                            | t                    S )zp
    Helper function to apply `friendly_debug_info` to items in `a`.
    `a` may be a list, tuple, or dict.
    )r   fxnodemap_aggregater   )as    r   map_debug_infor      s    
 8=&&q*=>>>r   )r   r   r    r   r   <module>r      s8      ? ? ? ? ?r   