ó
    ¤ó�jy  ã                   ó¦  • S r SSKJr  SSKJr  SSKrSSKJr  SrSr	Sr
\R                  " S	5      r\" 1 S
k5      r\" S V VVs1 s H  n S  H  n\\	\
4  H  nXU4iM	     M     M      snnn S VVs1 s H  n\\	4  H  nSX4iM	     M     snn-  5      r\" SS9 " S S5      5       rS\4S jrSSS.S\S\S\S\S\S\4S jjrgs  snnn f s  snnf )zLResolve requested inference options against verified execution capabilities.é    )Ú	dataclass)ÚversionN)Úsupports_autocastÚfp32ÚautocastÚnative_fp16z2.6>   ©ÚmpsÚbs_roformer©r
   Úmel_band_roformer©Úcudar   ©r   r   )r
   r   )r   r   ÚcpuT)Úfrozenc                   ó6   • \ rS rSr% Sr\r\\S'   Sr	\
\S'   Srg)ÚExecutionPolicyé*   z5The effective execution choices for one loaded model.Ú	precisionFÚuse_torch_compile© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚFP32r   ÚstrÚ__annotations__r   ÚboolÚ__static_attributes__r   ó    Ú¸C:\Users\johnn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\audio_separator/separator/execution_policy.pyr   r   *   s   ‡ á?à€IˆsÓØ#Ð�tÖ#r#   r   Úreturnc                  ó®   • [         R                  " [        R                  R	                  S5      S   5      n [        [        S5      =(       a	    U [        :¬  $ )zBReturn whether Dynamo can trace the SDPA context used by RoFormer.Ú+r   Úcompile)r   ÚparseÚtorchÚ__version__ÚsplitÚhasattrÚMIN_TORCH_COMPILE_VERSION)Útorch_versions    r$   Ú#_regional_compile_runtime_supportedr0   2   s>   € ä—M’M¤%×"3Ñ"3×"9Ñ"9¸#Ó">¸qÑ"AÓB€MÜ”5˜)Ó$×S¨Ô:SÑ)SÐSr#   )Úrequested_deviceÚuses_pytorch_inferenceÚmodel_familyÚuse_autocastÚuse_native_fp16r   r2   c                 óÖ  • U(       a  U(       a  [        S5      e[        U S[        U 5      5      nUb  [        US[        U5      5      OUn	U	S:X  a  U	OUn
U=(       d    SR                  5       n[        nU(       a(  X«4nU[
        ;   a  [        nOuUR                  SUU5        OaU(       aZ  U(       d  UR                  S5        OAU	S:X  a  UR                  S5        O)[        U 5      (       a  [        nOUR                  SU5        S	nU(       aU  X«U4nU[        ;  a  UR                  S
UUU5        O2[        5       (       d!  UR                  S[        R                  5        OSn[        XÎS9$ )zFResolve requested options, warning when an unverified path is skipped.zCAutocast and native float16 are mutually exclusive precision modes.ÚtypeÚprivateuseoneÚunknownz[Native float16 is not supported for device=%s, model=%s; continuing with float32 inference.zYAutocast only applies to PyTorch inference; continuing with the model's native precision.zIAutocast is not supported on DirectML; continuing with float32 inference.zKAutocast is not available for device=%s; continuing with float32 inference.FzoRegional torch.compile is not supported for device=%s, model=%s, precision=%s; continuing with eager inference.z`Regional torch.compile requires PyTorch 2.6 or newer; found %s. Continuing with eager inference.T)r   r   )Ú
ValueErrorÚgetattrr   Úlowerr   ÚNATIVE_FP16_CAPABILITIESÚNATIVE_FP16Úwarningr   ÚAUTOCASTÚTORCH_COMPILE_CAPABILITIESr0   r*   r+   r   )Údevicer1   r3   r4   r5   r   Úloggerr2   Údevice_typeÚrequested_device_typeÚcapability_device_typeÚnormalized_familyr   Ú
capabilityÚcompile_enableds                  r$   Úresolve_execution_policyrJ   8   sX  € ö žÜÐ^Ó_Ð_ä˜& &¬#¨f«+Ó6€KØXhÑXtœGÐ$4°f¼cÐBRÓ>SÔTð  {FÐØ6KÈÓ6^Ñ2ÐdoÐØ%×2¨×9Ñ9Ó;ÐÜ€IæØ,Ð@ˆ
ØÔ1Ó1Ü#‰Ià�N‰NØmØØ!õö
 
Þ%Ø�N‰NÐvÕwð # oÓ5Ø�N‰NÐfÕgÜ˜v×&Ñ&Ü ‰Ià�N‰NÐhÐjuÔvà€OÞØ,ÀÐKˆ
ØÔ7Ó7Ø�N‰Nð BØØ!Øõ	ô 5×6Ñ6Ø�N‰NØrÜ×!Ñ!õð
 #ˆOä YÑRÐRr#   )r   Údataclassesr   Ú	packagingr   r*   Ú1audio_separator.separator.uvr_lib_v5.device_utilsr   r   r@   r>   r)   r.   Ú	frozensetr=   rA   r   r!   r0   r   rJ   )rB   r3   r   s   000r$   Ú<module>rO      sX  ðÙ Rå !å Û å Oà€Ø€Ø€Ø#ŸMšM¨%Ó0Ð ñ
 %òóÐ ñ 'ñ &õâ%ˆFÜ@ˆLØ ¨+Ô6ˆIð 
˜yÓ)ñ 7ñ 	*á@ñ 	*Ù%óñ Aôâ@ˆLØ Ô)ˆIð 
�Ó(á)ñ 	)Ù@òñ
óÐ ñ �$Ñ÷$ð $ó ð$ðT¨Tô Tð ð $(ò=Sð ð	=Sð
 ð=Sð ð=Sð ð=Sð !ð=Sð ö=Sùô9ùós   Á%CÁ1C