+
    ˜°³jþ  ã                   ó`   € ^ RI Ht ^ RI5 ^ RIHtHt ]'       d   ^ RIHt Rt ! R R4      tR# )	é    )ÚTYPE_CHECKING)Ú*)Ú_WaitCounterÚ_WaitCounterTracker)ÚSummaryWriterztorch.monitor.Statc                   óH   a € ] tR t^t o RtV 3R lR ltV 3R lR ltRtV tR# )ÚTensorboardEventHandlera-  
TensorboardEventHandler is an event handler that will write known events to
the provided SummaryWriter.

This currently only supports ``torch.monitor.Stat`` events which are logged
as scalars.

Example:
    >>> # xdoctest: +REQUIRES(env:TORCH_DOCTEST_MONITOR)
    >>> # xdoctest: +REQUIRES(module:tensorboard)
    >>> from torch.utils.tensorboard import SummaryWriter
    >>> from torch.monitor import TensorboardEventHandler, register_event_handler
    >>> writer = SummaryWriter("log_dir")
    >>> register_event_handler(TensorboardEventHandler(writer))
c                ó"   <€ V ^8„  d   QhRRRR/# )é   Úwriterr   ÚreturnN© )ÚformatÚ__classdict__s   "€ÚW/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torch/monitor/__init__.pyÚ__annotate__Ú$TensorboardEventHandler.__annotate__   s   ø€ ÷ ñ ˜ð °4ñ ó    c                ó   € Wn         R# )z-
Constructs the ``TensorboardEventHandler``.
N©Ú_writer)Úselfr   s   &&r   Ú__init__Ú TensorboardEventHandler.__init__   s	   € ð Žr   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r   Úeventr   N)ÚEvent)r   r   s   "€r   r   r   $   s   ø€ ÷ Tñ T™eð T¨ñ Tr   c                óä   € VP                   \        8X  d[   VP                  P                  4        F:  w  r#V P                  P                  W#VP                  P                  4       R 7       K<  	  R# R# ))ÚwalltimeN)ÚnameÚ
STAT_EVENTÚdataÚitemsr   Ú
add_scalarÚ	timestamp)r   r   ÚkÚvs   &&  r   Ú__call__Ú TensorboardEventHandler.__call__$   sP   € Ø�:‰:œÔ#ØŸ
™
×(Ñ(Ö*‘�Ø—‘×'Ñ'¨°u·±×7PÑ7PÓ7RÐ'ÖSó +ñ $r   r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r(   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r	   r	      s    ø‡ € ñ÷ ð ÷Tö Tr   r	   N)	Útypingr   Útorch._C._monitorr   r   Útorch.utils.tensorboardr   r!   r	   r   r   r   Ú<module>r4      s'   ðÝ  ä ß ?÷ Ý5à!€
÷Tó Tr   