+
    úäûjå  ã                   ó”   € ^ RI t ^ RIt^ RIt^RIHt R tR tR t ! R R] P                  P                  P                  4      t
R tR# )	é    N)Úcontrolc                 óx   € R V3RRRV R3R^/p ! R R4      pV! 4       pW5n         \        P                  ! WRR7      # )	ÚshapeÚtypestrz|u1ÚdataFÚversionc                   ó   € ] tR t^tRtR# )Ú'get_tensor_from_raw_ptr.<locals>.Holder© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    ÚMC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\comfy_aimdo\torch.pyÚHolderr
      s   † Ûr   r   )Údevice)Ú__cuda_array_interface__ÚtorchÚ	as_tensor)ÚptrÚsizer   Ú	containerr   Úholders   &&&   r   Úget_tensor_from_raw_ptrr      sK   € à�$�Ø�5Ø��e�Ø�1ð	€I÷ñ ñ ‹X€FØ&/Ô#ä�?Š?˜6Ô1Ð1r   c                 ó$   € V w  r#p\        W4V4      # )N)r   )Úallocr   Ú_r   r   s   &&   r   Úaimdo_to_tensorr       s   € Ø�L€AˆDÜ" 3¨fÓ5Ð5r   c                 óÊ   € \         P                  V P                  ,          P                  V P	                  4       4      p\
        P                  ! V\
        P                  R 7      # ))Údtype)ÚctypesÚc_uint8r   Úfrom_addressÚget_raw_addressr   Ú
frombufferÚuint8)ÚhostbufÚ	byte_views   & r   Úhostbuf_to_tensorr+      s?   € Ü—‘ '§,¡,Õ.×<Ñ<¸W×=TÑ=TÓ=VÓW€IÜ×Ò˜I¬U¯[©[Ô9Ð9r   c                   ó&   a € ] tR t^$t o R tRtV tR# )ÚCUDAPluggableAllocatorc                ó‚  € \         P                  ! \        \        P                  R 4      \         P
                  4      P                  p\         P                  ! \        \        P                  R4      \         P
                  4      P                  pVf   Q hVf   Q h\        P                  P                  W4      V n
        R# )Úalloc_fnÚfree_fnN)r#   ÚcastÚgetattrr   ÚlibÚc_void_pÚvaluer   Ú_CÚ_cuda_customAllocatorÚ
_allocator)Úselfr/   r0   s   &  r   Ú__init__ÚCUDAPluggableAllocator.__init__%   sz   € Ü—;’;œw¤w§{¡{°JÓ?ÄÇÁÓQ×WÑWˆÜ—+’+œg¤g§k¡k°9Ó=¼v¿¹ÓO×UÑUˆØÒ#Ð#Ð#ØÒ"Ð"Ð"ÜŸ(™(×8Ñ8¸ÓKˆŽr   )r8   N)r   r   r   r   r:   r   Ú__classdictcell__)Ú__classdict__s   @r   r-   r-   $   s   ø‡ € ÷Lð Lr   r-   c                  ój   € \         P                  ! R 4       \        P                  f   R# \	        4       # )zFWARNING: Aimdo+CUDAPluggableAllocator is experimental and unsupported.N)ÚloggingÚwarningr   r3   r-   r   r   r   Úget_torch_allocatorrA   ,   s)   € ô ‡O‚OÐ\Ô^Ü—;‘;Ò&ˆ4ÐDÔ,BÓ,DÐDr   )r   r#   r?   Ú r   r   r    r+   ÚcudaÚmemoryr-   rA   r   r   r   Ú<module>rE      sD   ðÛ Û ã å ò2ò 6ò:ôL˜UŸZ™Z×.Ñ.×EÑEô LôEr   