
    Ki{C                     J   S r SSKrSrSr SSKJrJrJrJrJ	r	J
r
JrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJrJ r J!r!J"r"J#r#J$r$J%r%J&r&J'r'J(r(J)r)J*r*J+r+J,r,J-r-J.r.  Sr/SSK2J3r3  \/(       a  \/eSSK4J5r5J6r6J7r7J8r8J9r9J:r:J;r;J<r<   SS	K=J>r>  \3R                  " 5       u  rArBrC\B(       a  \Br\3R                  " 5         S
\E4S jrFSS
\ES\ES-  4S jjrGS\ES\E4S jrHS\ES\E4S jrISS\JS\JS\J4S jjrKS rLSS\JS\JS\J4S jjrMg! \0 a  r1\1r/ Sr1C1NSr1C1ff = f! \? a     Nf = f)a  
ONNX Runtime is a performance-focused scoring engine for Open Neural Network Exchange (ONNX) models.
For more information on ONNX Runtime, please see `aka.ms/onnxruntime <https://aka.ms/onnxruntime/>`_
or the `Github project <https://github.com/microsoft/onnxruntime/>`_.
    Nz1.24.2	Microsoft)*ExecutionModeExecutionOrderGraphOptimizationLevelLoraAdapterModelMetadataNodeArgOrtAllocatorTypeOrtArenaCfgOrtCompileApiFlagsOrtDeviceMemoryTypeOrtEpAssignedNodeOrtEpAssignedSubgraphOrtEpDevice OrtExecutionProviderDevicePolicyOrtExternalInitializerInfoOrtHardwareDeviceOrtHardwareDeviceTypeOrtMemoryInfoOrtMemoryInfoDeviceType
OrtMemTypeOrtSparseFormatOrtSyncStream
RunOptionsSessionIOBindingSessionOptionscreate_and_register_allocator create_and_register_allocator_v2disable_telemetry_eventsenable_telemetry_eventsget_all_providersget_available_providersget_build_info
get_deviceget_ep_devicesget_version_stringhas_collective_ops#register_execution_provider_libraryset_default_logger_severityset_default_logger_verbosityset_global_thread_pool_sizesset_seed%unregister_execution_provider_library)onnxruntime_validation)AdapterFormatInferenceSession	IOBindingModelCompiler	OrtDeviceOrtValueSparseTensorcopy_tensors   )experimentalpackage_namec                 F    SSK JnJn   U" U 5      nU$ ! U a    S n U$ f = f)Nr   )PackageNotFoundErrorversion)importlib.metadatar;   r<   )r9   r;   r<   package_versions       V/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/onnxruntime/__init__.py_get_package_versionr@   j   s8    @!,/    s      directory_namec                    SSK JnJn  U=(       d    U n U" U 5      nUR                  =(       d    / nU HP  nUR                  R                  S5      (       d  M%  XGR                  ;   d  M6  UR                  5       R                  s  $    U(       dE  U H?  nUR                  R                  S5      (       d  M%  UR                  5       R                  s  $    g ! U a     g f = f)Nr   )r;   distributionz__init__.py)	r=   r;   rC   filesnameendswithpartslocateparent)r9   rA   r;   rC   root_directory_namedistrD   files           r?   _get_package_rootrM   t   s    E(8LL)

 bDyy!!-005HJJ5V{{}+++ 
 99%%m44;;=///  	   	s0   A C C *C ,C 6C C CCversion_strreturnc                 <    U (       a  U R                  S5      S   $ S$ )zExtract CUDA major version from version string (e.g., '12.1' -> '12').

Args:
    version_str: CUDA version string to parse

Returns:
    Major version as string, or "12" if parsing fails
.r   12)split)rN   s    r?   _extract_cuda_major_versionrT      s!     )4;S!!$==    
cuda_majorc                     U S:X  a  S$ S$ )zGet cufft library version based on CUDA major version.

Args:
    cuda_major: CUDA major version as string (e.g., "12", "13")

Returns:
    cufft version as string
13rR   11 )rV   s    r?   _get_cufft_versionr[      s     %4/4/rU   
is_windowscudacudnnc           
      (   [        [        5      n[        U5      nU (       a+  SSSSU S34SSSSU S34SSSSU S34SS	SS
U S34/n/ SQnO.SSSSU 34SSSSU 34SSSSU 34SSSSSU 34SS	SSU 34/nS/nU(       a  UO/ U(       a  U-   $ / -   $ )NnvidiacublasbincublasLt64_z.dll	cublas64_cufftcufft64_cuda_runtime	cudart64_))r`   r^   rb   z&cudnn_engines_runtime_compiled64_9.dll)r`   r^   rb   z!cudnn_engines_precompiled64_9.dll)r`   r^   rb   zcudnn_heuristic64_9.dll)r`   r^   rb   zcudnn_ops64_9.dll)r`   r^   rb   zcudnn_adv64_9.dll)r`   r^   rb   zcudnn_graph64_9.dll)r`   r^   rb   zcudnn64_9.dlllibzlibcublasLt.so.zlibcublas.so.
cuda_nvrtczlibnvrtc.so.)r`   curandri   zlibcurand.so.10zlibcufft.so.zlibcudart.so.)r`   r^   ri   zlibcudnn.so.9)rT   cuda_versionr[   )r\   r]   r^   cuda_major_versioncufft_versioncuda_dll_pathscudnn_dll_pathss          r?   _get_nvidia_dll_pathsrq      s   4\B&'9:M x+6H5I(NOx)4F3Gt(LMw-'EF~u	:L9MT.RS	

 x/:L9M(NOx-8J7K(LM|Ul;M:N,OP:wm_'EF~u>P=Q.RS
 8
 #N%PPRPPrU   c                     SSK n SSKnSSKnSSKJn  [        [         S[         35        [        (       a  [        S[         35        [        SUR                  5       5        [        S5        / nU" 5        Hz  nUR                  S   nUS	:X  d  UR                  S
5      (       d  M0  [        US	5      nU(       d  ME  Xd;  d  ML  UR                  U5        [        U SUR                   SU 35        M|     [        U5      S:  a  [        S5        [        (       a  [        [        5      nSSU 3SU 3SU 3SU 3SU 3SU 3SU 3/n	U	 H[  nUR                  S5      (       a  SOSn
[!        U5      nU(       a  [        U SU S[        Xj5       35        MM  [        U S35        M]     UR#                  5       S:X  a)  [        SUR$                  R'                  SS5       35        O<UR#                  5       S:X  a(  [        SUR$                  R'                  S S5       35        U R(                  R+                  S!5      (       Ga  S"[,        4S# jnSSKnUR1                  UR3                  5       5      n[        S$5        UR5                  5        H?  nU" UR6                  R9                  5       5      (       d  M*  [        UR6                  5        MA     [        (       an  U R(                  R+                  S%5      (       aB  U R(                  R+                  S&5      (       a"  SS'KJn  [        S(5        [        U" 5       5        g[        S)5        gg[        S*5        g)+z$Print information to help debugging.r   N)distributionsz
 version: zCUDA version used in build: z	platform:z&
Python package, version and location:Nameonnxruntime)zonnxruntime-zort-z==z at r7   z[33mWARNING: multiple onnxruntime packages are installed to the same location. Please 'pip uninstall` all above packages, then `pip install` only one of them.[0mtorchznvidia-cuda-runtime-cuznvidia-cudnn-cuznvidia-cublas-cuznvidia-cufft-cuznvidia-curand-cuznvidia-cuda-nvrtc-cuznvidia-nvjitlink-cuznvidia-r`   z not installedWindowsz
Environment variable:
PATH=PATHz(unset)Linuxz'
Environment variable:
LD_LIBRARY_PATH=LD_LIBRARY_PATHpsutilpathc                 `   ^  SS/n[         (       a
  SSSSSS/UQn[        U 4S	 jU 5       5      $ )
Nvcruntime140msvcp140re   ra   cudartnvrtcrk   r^   c              3   ,   >#    U  H	  oT;   v   M     g 7fNrZ   ).0keywordr|   s     r?   	<genexpr>:print_debug_info.<locals>.is_target_dll.<locals>.<genexpr>  s     Fo7$os   )rl   any)r|   target_keywordss   ` r?   is_target_dll'print_debug_info.<locals>.is_target_dll  s<    -z:O|#*HhSZ"m]l"mFoFFFrU   z
List of loaded DLLs:cpuinfopy3nvml)get_device_infoz
Device information:zCplease `pip install py-cpuinfo py3nvml` to show device information.z0please `pip install psutil` to show loaded DLLs.)importlib.utilosplatformr=   rs   printr9   __version__rl   metadata
startswithrM   appendr<   lenrT   r@   systemenvirongetutil	find_specstrr{   Processgetpidmemory_mapsr|   lowertransformers.machine_infor   )	importlibr   r   rs   ort_packagesrK   packagelocationrV   packagesrA   r<   r   r{   pri   r   s                    r?   print_debug_infor      s   0	\N*[M
23|,\N;<	+x((*+	
34L--'m#w'9'9:R'S'S(-@HxW8##G,	DLL>hZ@A   <1e	

 |0>
 $ZL1j\*zl+j\*zl+":,/!*.	
  G)0););I)F)FXDN*73G	G9D1B71[0\]^	01   I%.rzz~~fi/P.QRS		g	%9"**..IZ\e:f9ghi~~))	G 	G 	NN299;'&'==?CSXX^^-..chh # <~~''	22y~~7O7OPY7Z7ZF-.o'([\  	@ArU   msvcc                    SSK nSSKnSSKnSSKnUR	                  5       S;  a  gUR	                  5       S:H  nU(       aO  U(       aH   UR                  S5        UR                  S5        UR                  5       S:w  a  UR                  S5        Sn	[        (       aR   [        [        R                  S5      S   5      n	U	S:  a)  U (       d  U(       a  [        S[         S[         S35        gOU (       d  U(       a  gSn
U(       a  [        S5      nSnU(       aK  SU;   aE  [        R                   " [        5         UR                  S5      S   n[        USS 5      nSSS5        U(       a  U	(       a  X:H  OSnSUR"                  ;   a4  Un
U(       a+  U	(       a$  X:w  a  [        SU SU S[         SU	 SU	 S35        U(       a2  Uc/  [%        SS5      nU(       a  UR&                  R)                  US5      nU=(       d    SnUR&                  R+                  U5      (       d9  UR&                  R)                  UR&                  R-                  [.        5      U5      nUR&                  R1                  U5      nUR&                  R3                  U5      (       d  [5        SU S35      eU
(       a  [        S 5        g[7        XU5      n/ nU H  nU(       a  UR&                  R)                  UUS!   5      OUR&                  R(                  " U/UQ76 nUR&                  R9                  U5      (       d  Mh   UR                  U5      nUR;                  US!   5        M     SnU H"  nUS!   nUU;  d  M   UR                  U5      nM$     U(       a  [        S%5        gg! [         a    [        S	5        [        S
5         GN+f = f! [         a    [        S[         S35         gf = f! , (       d  f       GN= f! [<         a  n[        S"U S#U 35         SnAGMN  SnAff = f! [<         a  nS$n[        S"U S#U 35         SnAM  SnAff = f)&a  Preload CUDA 12.x+ and cuDNN 9.x DLLs in Windows or Linux, and MSVC runtime DLLs in Windows.

   When the installed PyTorch is compatible (using same major version of CUDA and cuDNN),
   there is no need to call this function if `import torch` is done before `import onnxruntime`.

Args:
    cuda (bool, optional): enable loading CUDA DLLs. Defaults to True.
    cudnn (bool, optional): enable loading cuDNN DLLs. Defaults to True.
    msvc (bool, optional): enable loading MSVC DLLs in Windows. Defaults to True.
    directory(str, optional): a directory contains CUDA or cuDNN DLLs. It can be an absolute path,
       or a path relative to the directory of this file.
       If directory is None (default value), the search order: the lib directory of compatible PyTorch in Windows,
        nvidia site packages, default DLL loading paths.
       If directory is empty string (""), the search order: nvidia site packages, default DLL loading paths.
       If directory is a path, the search order: the directory, default DLL loading paths.
r   N)rw   ry   rw   zvcruntime140.dllzmsvcp140.dllARM64zvcruntime140_1.dllz]Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load failure.zGIt can be downloaded at https://aka.ms/vs/17/release/vc_redist.x64.exe.rQ      z[33mWARNING: z is built with CUDA z, which is not supported for preloading. CUDA 12.x or newer is required. Call preload_dlls with cuda=False and cudnn=False.[0mz,[33mWARNING: Unable to parse CUDA version 'zR'. Skipping DLL preloading. Call preload_dlls with cuda=False and cudnn=False.[0mFrv   z+cur7      z$[33mWARNING: The installed PyTorch z uses CUDA z.x, but z$.x. Please install PyTorch for CUDA z.x to be compatible.[0mri   z..zInvalid parameter of directory=z. The directory does not exist!z9Skip loading CUDA and cuDNN DLLs since torch is imported.zFailed to load z: Tz\Please follow https://onnxruntime.ai/docs/install/#cuda-and-cudnn to install CUDA and CuDNN.)ctypesr   r   sysr   CDLLmachineOSErrorr   rl   intrS   r9   
ValueErrorr@   
contextlibsuppressmodulesrM   r|   joinisabsdirname__file__normpathisdirRuntimeErrorrq   isfiler   	Exception)r]   r^   r   	directoryr   r   r   r   r\   ort_cuda_majoris_cuda_cudnn_imported_by_torchtorch_versiontorch_cuda_majorcu_partis_torch_cuda_compatible
torch_rootbase_directory	dll_pathsloaded_dllsrelative_pathdll_path_ehas_failuredll_filenames                            r?   preload_dllsr   #  s   "  44"i/Jd	]KK*+KK'!W,01 N|	 !3!3C!8!;<N"'~5I, Xp q  
&+#,W5Um3$$Z0'--e4Q7#&wr{#3  1 4D.]b 	! ckk!.F+N7G7Y=m_KXhWi j'.(<^<L M77E6FFac $	(9*7G<JGGLLU;	&$N77==((bggooh&?PWW%%n5N77==((<YKGfghh&IJ &j>IK"  GGLLr):;n=}= 	
 77>>(##9KK)""=#45 # K"$R({*=KK-	 # lm }  	]qr[\	]  	A, Pe e 	" 10`  9zA37889  ="~Rs;<<=sb   AN AN> :#O!0%O3.P N;:N;>OO!
O03
P=PP
Q'Q  Qr   )TT)TTTN)N__doc__r   r   
__author__onnxruntime.capi._pybind_stater   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   import_capi_exceptionr   r   onnxruntime.capir.   1onnxruntime.capi.onnxruntime_inference_collectionr/   r0   r1   r2   r3   r4   r5   r6    r8   ImportError!get_package_name_and_version_infor9   r<   rl   check_distro_infor   r@   rM   rT   r[   boolrq   r   r   rZ   rU   r?   <module>r      sl  
 
0+ + + + + + + + + + +Z ! 4
	 	 		
 '=&^&^&` #g|
K  ( ( *s C t 0	>S 	>S 	>
03 
03 
0&Qd &Q$ &Qd &QRRBjnt n4 nd nw  ,  		s*   AD 
D D
DDD"!D"