+
    –°³j²/  ã                   ó¨   € ^ RI t ^ RIt^ RIHt ^ RIt^ RIt^ RIHtHtH	t	H
t
Ht ^ RIHtHtHtHtHtHt R.t]! RRR7       ! R R4      4       tR	 tR# )
é    N)Ú
deprecated)Ú_disable_profiler_legacyÚ_enable_profiler_legacyÚ
DeviceTypeÚProfilerConfigÚProfilerState)Ú_filter_nameÚ_filter_stack_entryÚ_rewrite_nameÚ	EventListÚFunctionEventÚMEMORY_EVENT_NAMEÚprofilez„`torch.autograd.profiler_legacy.profile` is deprecated and will be removed in a future release. Please use `torch.profiler` instead.)Úcategoryc                   ó’  a € ] tR t^t o RtRRRRRRRRRRRRR/R	 lltR
 tR tR tR t	R t
R tR tRR lt]P                  P                  ]n        R t]P                  P                  ]n        RV 3R lR lltRR lt]P"                  P                  ]n        R t]P$                  P                  ]n        ]R 4       tRtV tR# )r   z'DEPRECATED: use torch.profiler instead.Úuse_cudaFÚrecord_shapesÚ
with_flopsÚprofile_memoryÚ
with_stackÚwith_modulesc               ó
  € Wn         V P                   '       g   R # W n        R V n        RV n        W0n        W@n        V ;P                  V P
                  ,          un        WPn        W`n        Wpn        V P                  '       dD   \        P                  P                  4       '       g    \        P                  ! R^R7       RV n        V P                  '       d   \        P                  V n        R # \        P"                  V n        R # )NFz/CUDA is not available, disabling CUDA profiling)Ú
stacklevel)Úenabledr   Úfunction_eventsÚenteredr   r   r   r   r   ÚtorchÚcudaÚis_availableÚwarningsÚwarnr   ÚCUDAÚprofiler_kindÚCPU)Úselfr   r   r   r   r   r   r   s   &&$$$$$$Ú_/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torch/autograd/profiler_legacy.pyÚ__init__Úprofile.__init__$   sµ   € ð %ŒØ�|�|ˆ|ÙØ ŒØ#ˆÔØˆŒØ*ÔØ$ŒØ×Ò˜dŸo™oÕ-ÕØ,ÔØ$ŒØ(Ôà�=�=ˆ=¤§¡×!8Ñ!8×!:Ò!:Ü�MŠMØAØõð "ˆDŒMà�=�=ˆ=Ü!.×!3Ñ!3ˆDÖä!.×!2Ñ!2ˆDÖó    c           
     óè   € \        V P                  V P                  V P                  V P                  V P
                  V P                  \        P                  P                  P                  4       4      # ©N)r   r#   r   r   r   r   r   r   Ú_CÚ	_profilerÚ_ExperimentalConfig©r%   s   &r&   ÚconfigÚprofile.configH   sW   € ÜØ×ÑØ×ÑØ×ÑØ�O‰OØ�O‰OØ×Ñä�H‰H×Ñ×2Ñ2Ó4ó	
ð 		
r)   c                ó–   € V P                   '       g   R # V P                  '       d   \        R4      hRV n        V P                  4        V # )Nz)Profiler context manager is not reentrantT)r   r   ÚRuntimeErrorÚ_start_tracer/   s   &r&   Ú	__enter__Úprofile.__enter__T   s;   € Ø�|�|ˆ|ÙØ�<�<ˆ<ÜÐJÓKÐKØˆŒØ×ÑÔØˆr)   c                ó8   € \        V P                  4       4       R # r+   )r   r0   r/   s   &r&   r4   Úprofile._start_trace]   s   € Ü §¡£Ö.r)   c                ód  € V P                   '       g   R # V P                  '       d   \        P                  P	                  4        \        4       p\        V4      p\        TV P                  '       d   RMR V P                  V P                  R7      V n
        V P                  P                  4        R# )Nr   )Ú
use_devicer   r   F)r   r   r   r   Úsynchronizer   Ú_parse_legacy_recordsr   r   r   r   Ú_build_tree)r%   Úexc_typeÚexc_valÚexc_tbÚrecordsÚparsed_resultss   &&&&  r&   Ú__exit__Úprofile.__exit__`   s}   € Ø�|�|ˆ|ÙØ�=�=ˆ=Ü�J‰J×"Ñ"Ô$ä*Ó,ˆÜ.¨wÓ7ˆä(ØØ!%§§ ‘v°DØ×.Ñ.Ø—‘ô	 
ˆÔð 	×Ñ×(Ñ(Ô*Ùr)   c                óL   € V P                   f   R# \        V P                   4      # )Nz$<unfinished profiler_legacy.profile>)r   Úreprr/   s   &r&   Ú__repr__Úprofile.__repr__s   s"   € Ø×ÑÒ'Ù9Ü�D×(Ñ(Ó)Ð)r)   c                óL   € V P                   f   R# \        V P                   4      # )Nz,<unfinished profile.profiler_legacy.profile>)r   Ústrr/   s   &r&   Ú__str__Úprofile.__str__x   s"   € Ø×ÑÒ'ÙAÜ�4×'Ñ'Ó(Ð(r)   c                ó8   € V P                   f   \        R4      hR # )NzProfiler didn't finish running)r   r3   r/   s   &r&   Ú_check_finishÚprofile._check_finish}   s   € Ø×ÑÒ'ÜÐ?Ó@Ð@ñ (r)   Nc           
     ó˜   € V P                  4        V P                  f   \        R4      hV P                  P                  VVVVVVVR7      # )NúExpected profiling results)Úsort_byÚ	row_limitÚmax_src_column_widthÚmax_name_column_widthÚmax_shapes_column_widthÚheaderÚtop_level_events_only)rN   r   ÚAssertionErrorÚtable)r%   rR   rS   rT   rU   rV   rW   rX   s   &&&&&&&&r&   rZ   Úprofile.table�   s[   € ð 	×ÑÔØ×ÑÒ'Ü Ð!=Ó>Ð>Ø×#Ñ#×)Ñ)ØØØ!5Ø"7Ø$;ØØ"7ð *ó 
ð 	
r)   c                óŠ   € V P                  4        V P                  f   \        R4      hV P                  P                  V4      # ©NrQ   )rN   r   rY   Úexport_chrome_trace)r%   Úpaths   &&r&   r^   Úprofile.export_chrome_traceš   s=   € Ø×ÑÔØ×ÑÒ'Ü Ð!=Ó>Ð>Ø×#Ñ#×7Ñ7¸Ó=Ð=r)   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# )é   r_   Úmetric)rJ   )ÚformatÚ__classdict__s   "€r&   Ú__annotate__Úprofile.__annotate__¢   s   ø€ ÷ @ñ @¡#ð @©sñ @r)   c                óÄ   € V P                  4        V P                  f   \        R4      hV P                  '       g   \        R4      hV P                  P	                  W4      # )NrQ   z(export_stacks() requires with_stack=True)rN   r   rY   r   Úexport_stacks)r%   r_   rc   s   &&&r&   ri   Úprofile.export_stacks¢   sR   € Ø×ÑÔØ×ÑÒ'Ü Ð!=Ó>Ð>Ø��ˆÜ Ð!KÓLÐLØ×#Ñ#×1Ñ1°$Ó?Ð?r)   c                óŠ   € V P                  4        V P                  f   \        R4      hV P                  P                  W4      # r]   )rN   r   rY   Úkey_averages)r%   Úgroup_by_input_shapeÚgroup_by_stack_ns   &&&r&   rl   Úprofile.key_averagesª   s>   € Ø×ÑÔØ×ÑÒ'Ü Ð!=Ó>Ð>Ø×#Ñ#×0Ñ0Ð1EÓXÐXr)   c                óˆ   € V P                  4        V P                  f   \        R4      hV P                  P                  4       # r]   )rN   r   rY   Útotal_averager/   s   &r&   rq   Úprofile.total_average²   s;   € Ø×ÑÔØ×ÑÒ'Ü Ð!=Ó>Ð>Ø×#Ñ#×1Ñ1Ó3Ð3r)   c                ó€   € V P                  4        V P                  f   \        R4      hV P                  P                  # )z;Return CPU time as the sum of self times across all events.rQ   )rN   r   rY   Úself_cpu_time_totalr/   s   &r&   rt   Úprofile.self_cpu_time_totalº   s:   € ð 	×ÑÔØ×ÑÒ'Ü Ð!=Ó>Ð>Ø×#Ñ#×7Ñ7Ð7r)   )
r   r   r   r   r#   r   r   r   r   r   )T)Néd   éK   é7   éP   NF)rt   )Fr   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r'   r0   r5   r4   rC   rG   rK   rN   rZ   r   r^   ri   rl   rq   Úpropertyrt   Ú__static_attributes__Ú__classdictcell__)re   s   @r&   r   r      sù   ø‡ € ñ 2ñ"3ð ð	"3ð
 ð"3ð ð"3ð ð"3ð ð"3ð õ"3òH

òò/òò&*ò
)ò
Aô
ð. —O‘O×+Ñ+€E„Mò>ð #,×"?Ñ"?×"GÑ"GÐÔ÷@ò @ôYð %×1Ñ1×9Ñ9€LÔò4ð &×3Ñ3×;Ñ;€MÔàñ8ó ö8r)   c                 óú	  € R  pRp. p\         P                  P                  V 4       F$  pVP                  4       pVe   K  VR8X  g   K"  TpK&  	  Ve   VP	                  4       '       d   \        R4      hV  EFh  p/ p/ p/ p	\        4       p
RpV EFK  pV! V4      p\        VP                  4       4      '       g   WÊ9   d   V
P                  V4       KD  VP                  4       R8X  d¡   Ve�   VP                  4       VP                  4       8H  ;'       dK    VP                  4       VP                  4       8H  ;'       d"    VP                  4       VP                  4       8H  pV'       d   V
P                  V4       Kë  WIV&   ^ W|&   ^ WŒ&   EMPVP                  4       R8X  EdR   WÉ9  d   \        RV R24      hWœ,          pW|,          pWŒ,          pVP                  4       ;'       g"    VP                  4       VP                  4       8g  pVP	                  4       pVP                  4       p\        R'/ RVP                  4       bR	VP                  4       bR
\!        VP                  4       RR7      bR\!        VP                  4       RR7      bRVP                  4       bRVP#                  V4      bRVP#                  V4      bRVP%                  4       bRVP'                  4       bRVP)                  4        Uu. uF  p\+        V4      '       g   K  VNK  	  upbRVP-                  4       bRVP/                  4       '       d   RMRbRVbRVbRVbRVbRVP1                  4       bR\2        P4                  bRRbRVb pV'       g^   VP/                  4       '       dH   VP7                  V4      pV^ 8”  d0   VP9                  VP                  4       VP;                  4       V4       VP=                  V4       Wœ W| WŒ MéVP                  4       R 8X  dÕ   \?        V4      p\?        V4      pVV8w  d   \        R!V R"V R#24      hV F&  pVV;;,          VPA                  4       ,          uu&   K(  	  V F&  pVV;;,          VPC                  4       ,          uu&   K(  	  V^ 8X  dG   \        ^ \D        R^ ^ ^ . VPA                  4       VPC                  4       RR$7
      pVP=                  V4       TpEKN  	  EKk  	  VPG                  R% R&7       V# u upi )(c                óB   € V P                  4       V P                  4       3# )zPReturn a tuple for correlating start and end records in `_parse_legacy_records`.)ÚhandleÚnode_id)Úrecords   &r&   Ú_get_record_keyÚ._parse_legacy_records.<locals>._get_record_keyÄ   s   € à—‘“ §¡Ó!1Ð2Ð2r)   NÚ__start_profilez#Expected a valid local start_recordÚpushÚpopzExpected record with key z[ to exist in range_starts. This means that the pop event did not have a corresponding push.Úidr…   ÚnameT)r�   Úwith_wildcardÚ
trace_nameFÚthreadÚstart_usÚend_usÚ
fwd_threadÚinput_shapesÚstackÚscoper:   r   Úcpu_memory_usageÚdevice_memory_usageÚis_asyncÚ	is_remoteÚsequence_nrÚdevice_typeÚ	is_legacyÚflopsÚmemory_alloczBExpected CPU and CUDA memory allocation handles to match, but got z	 CPU and z CUDA)
rŒ   r�   r�   r�   r‘   r’   r•   r—   r˜   r�   c                 ó\   € V P                   P                  V P                   P                  ) .# r+   )Ú
time_rangeÚstartÚend)Úevts   &r&   Ú<lambda>Ú'_parse_legacy_records.<locals>.<lambda>F  s    €  C§N¡N×$8Ñ$8¸3¿>¹>×;MÑ;MÐ:MÑ#Nr)   )Úkey© )$Ú	itertoolsÚchainÚfrom_iterabler�   rš   rY   Úsetr	   ÚaddÚkindr…   r™   Ú	thread_idrž   r   r„   r   Úcpu_elapsed_usÚfwd_thread_idÚshapesr•   r
   r–   Úhas_cudar›   r   r$   Úcuda_elapsed_usÚappend_kernelÚdeviceÚappendÚlenr—   Úcuda_memory_usager   Úsort)Úthread_recordsr‡   Ústart_recordÚ	functionsr†   r�   Úthread_record_listÚcpu_memory_allocsÚcuda_memory_allocsÚrange_startsÚfiltered_handlesÚprev_recordÚ
record_keyÚ	duplicater¢   r—   r¹   r™   Úis_remote_eventÚstart_flopsÚentryÚfeÚdurationÚnum_open_handles_cpuÚnum_open_handles_cudar„   s   &                         r&   r<   r<   Ã   só  € ò3ð €LØ€Iô —/‘/×/Ñ/°Ö?ˆØ�{‰{‹}ˆØÔ DÐ,=Ö$=Ø!ŠLñ @ð
 Ò˜|×5Ñ5×7Ò7ÜÐBÓCÐCä,ÐàÐØÐàˆä›5ÐØˆÜ(ˆFÙ(¨Ó0ˆJÜ˜FŸK™K›M×*Ò*¨jÔ.LØ ×$Ñ$ ZÔ0Ùà�{‰{‹} Ô&ð Ò*à#×(Ñ(Ó*¨f¯k©k«mÑ;÷ Fð FØ'×,Ñ,Ó.°&·+±+³-Ñ?÷Fð Fà'×/Ñ/Ó1°V·^±^Ó5EÑEð ÷
 !Ø(×,Ñ,¨ZÔ8Ù à+1˜ZÑ(Ø01Ð!Ñ-Ø12Ð"Ó.Ø—‘“ %Õ'ØÔ1Ü(Ø3°J°<ð @[ð [óð ð
 %Õ0�à#4Õ#@Ð Ø$6Õ$BÐ!Ø Ÿ>™>Ó+×XÐX°·±Ó0AÀV×EUÑEUÓEWÑ0W�Ø"(×"2Ñ"2Ó"4�Ø#Ÿk™k›m�ä"ò Ø—}‘}”ðà"ŸN™NÔ,ðô '¨E¯J©J«LÈÕMðô  -°%·*±*³,ÈeÕTð	ð
 !Ÿ?™?Ô,ðð *×8Ñ8¸Ô?ðð (×6Ñ6°vÔ>ðð  %×2Ñ2Ô4ðð "'§¡¤ðð ,1¯;©;¬=óÙ+8 %Ô<OÐPU×<VŸ˜©=òðð  Ÿ+™+œ-ðð */¯©×)9Ò)9™v¸tøðñ &6ðñ  ):ð!ñ" &ð#ñ$ .ð%ð& !&× 1Ñ 1Ô 3ð'ô( !+§¢ð)ñ* #ð+ñ, &ð-�÷2   E§N¡N×$4Ò$4Ø$×4Ñ4°VÓ<�HØ !”|Ø×(Ñ(¨¯©«°u·|±|³~ÀxÔPØ× Ñ  Ô$Ø Ð,Ø%Ð1Ø&Ñ2Ø—‘“ .Ô0Ü'*Ð+<Ó'=Ð$Ü(+Ð,>Ó(?Ð%Ø'Ð+@Ô@Ü(ð#Ø#7Ð"8¸	ÐBWÐAXÐX]ð_óð ó 0�FØ% f×-°×1HÑ1HÓ1JÕJÕ-ñ 0ã0�FØ& v×.°&×2JÑ2JÓ2LÕLÕ.ñ 1à'¨1Ô,ä&ØÜ.Ø#'Ø Ø!"Ø Ø Ø)/×)@Ñ)@Ó)BØ,2×,DÑ,DÓ,FØ"&ô�Bð ×$Ñ$ RÔ(Ø ‹KôC )ñ -ðd ‡N�NÑN€NÔOØÐùòws   Ë.S8ÌS8)r©   r    Útyping_extensionsr   r   Ú
torch.cudaÚtorch.autogradr   r   r   r   r   Útorch.autograd.profiler_utilr	   r
   r   r   r   r   Ú__all__r   r<   r¨   r)   r&   Ú<module>rÒ      sa   ðã Û Ý (ã Û ÷õ ÷÷ ð ˆ+€ñ ð+àô÷
_8ð _8óð
_8ôDDr)   