Ë
    ëÓ^jM  ã                   ó2   — d Z ddlZddlZddlZddeddfd„Zy)z4Reproducibility helpers: seed all RNGs consistently.é    NÚseedÚreturnc                 óŽ  — t        j                  | «       t        j                   j                  | «       t        j                  | «       t        j
                  j                  «       r^t        j
                  j                  | «       dt        j                  j                  _
        dt        j                  j                  _        yy)aš  Seed all random number generators for reproducibility.

    Sets seeds for Python's ``random`` module, NumPy, and PyTorch (CPU and all CUDA devices).  Also configures cuDNN to
    use deterministic algorithms and disables its auto-tuner so that results are reproducible across runs at the cost of
    a possible slight performance decrease.

    Args:
        seed: Integer seed value.  Defaults to ``7``.
    TFN)Úrandomr   ÚnpÚtorchÚmanual_seedÚcudaÚis_availableÚmanual_seed_allÚbackendsÚcudnnÚdeterministicÚ	benchmark)r   s    úk/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/rfdetr/utilities/reproducibility.pyÚseed_allr      sy   € ô ‡K�K�ÔÜ‡I�I‡N�N�4ÔÜ	×Ñ�dÔÜ‡z�z×ÑÔ Ü�
‰
×"Ñ" 4Ô(Ø-1Œ�‰×ÑÔ*Ø).Œ�‰×ÑÕ&ð !ó    )é   )Ú__doc__r   Únumpyr   r   Úintr   © r   r   ú<module>r      s&   ðñ ;ã ã Û ñ/�3ð /˜tô /r   