Ë
    g^(h.  ã                   ó°   — d dl mZ d dlZd dlmZ dZdej                  dee   dee   dej                  fd	„Zdej                  d
edej                  fd„Z	y)é    )ÚSequenceN)ÚShardMetadataz@Please use DTensor instead and we are deprecating ShardedTensor.ÚtensorÚoffsetsÚsizesÚreturnc                 óš   — | }t        t        ||«      «      D ]0  \  }\  }}|| j                  |«      k  sŒ|j                  |||«      }Œ2 |S )zC
    Narrow the tensor according to ``offsets`` and ``sizes``.
    )Ú	enumerateÚzipÚsizeÚnarrow)r   r   r   Únarrowed_tensorÚidxÚoffsetr   s          ú]/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/torch/distributed/_shard/_utils.pyÚnarrow_tensor_by_indexr   
   s^   € ð €OÜ(¬¨W°eÓ)<Ó=ò HÑˆ‰^ˆf�dØ�&—+‘+˜cÓ"Ó"ð .×4Ñ4°S¸&À$ÓG‰OðHð Ðó    Úmetadatac                 óD   — t        | |j                  |j                  «      S )z5
    Narrow the tensor according to the metadata
    )r   Úshard_offsetsÚshard_sizes)r   r   s     r   Únarrow_tensorr      s   € ô " &¨(×*@Ñ*@À(×BVÑBVÓWÐWr   )
Úcollections.abcr   ÚtorchÚ!torch.distributed._shard.metadatar   ÚDEPRECATE_MSGÚTensorÚintr   r   © r   r   ú<module>r       su   ðÝ $ã Ý ;ð S€ðØ�L‰Lðà�c‰]ðð �C‰=ðð ‡\�\ó	ð$X˜%Ÿ,™,ð X°-ð XÀEÇLÁLô Xr   