
    ͑i                        S SK r S SKrS SKrS SKrSr\R
                  S:X  a  Sr\R                  R                  \R                  R                  \	5      5      \R                  -   S-   \-   r\R                  R                  \5      (       a4  \R                  R                  S\-   S-   5         \R                  " \5        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   SS
KJ!r!J"r"  SSKJ#r#J$r$J%r%J&r&  SSKJ'r'J(r(J)r)J*r*J+r+J,r,J-r-J.r.J/r/J0r0J1r1J2r2J3r3  SSKJ4r4  SSK5J6r6  SSKJ7r7J8r8  SSK9J:r:J;r;  SSK<J=r=  SSKJ>r>J?r?J@r@  SSKJArAJBrBJCrCJDrDJErEJFrFJGrGJHrHJIrIJJrJJKrKJLrLJMrMJNrNJOrOJPrPJQrQJRrRJSrSJTrTJUrUJVrVJWrWJXrX  SSKJYrY  SSKZJ[r[  SSK\J]r]J^r^  SSK_J`r`Jara  SSKJbrbJcrcJdrdJereJfrfJgrg  \+rh\;ri\:rj/ rkS rl\[" 5         \l" 5         \=" 5         \ R                  " \R                  5        \ R                  " \R                  R                  5        \ R                  " \R                  5        \ R                  " \R                  5        \ R                  " \R                  R                  5        g! \ a  r\eSrCff = f)    Nsontpydzcore.zDeleting legacy file 
   )backwardcompilercoredata_feed_descdatasetdygraphexecutor	frameworkincubateinitializeriolayerstrainer_descunique_name)append_backward	gradients)BuildStrategyCompiledProgramIpuCompiledProgramIpuStrategy)CPUPlaceCUDAPinnedPlace	CUDAPlaceCustomPlaceDenseTensorDenseTensorArrayIPUPlaceScopeXPUPinnedPlaceXPUPlace_cuda_synchronize_Scope_set_warmup)DataFeedDesc)
DataFeeder)DatasetFactoryInMemoryDataset)disable_dygraphenable_dygraph)monkey_patch_tensor)Executorglobal_scopescope_guard)ProgramVariable
cpu_placescuda_pinned_placescuda_placesdefault_main_programdefault_startup_programdevice_guard	get_flagsin_dygraph_modein_dynamic_or_pir_modein_pir_modeipu_shard_guardis_compiled_with_cinnis_compiled_with_cudais_compiled_with_rocmis_compiled_with_xpu
name_scopeprocess_type_promotionprogram_guardrequire_version	set_flagsset_ipu_shard
xpu_places)set_global_initializer)monkey_patch_variable)create_lod_tensorcreate_random_int_lodtensor)	ParamAttrWeightNormParamAttr)DistMultiTrainerHeterPipelineTrainerHeterXpuTrainerMultiTrainerPipelineTrainerTrainerDescc                    ^ S[         R                  ;   n  [        [        R                  " SS5      5      nUS:  a4  [        SU S3[         R                  S9  [        S[         R                  S9  [        U5      [        R                  S'   [        R                  " S	S
5      c  S[        R                  S	'   Sn[        R                  " 5       R                  5        Vs/ s H)  nUR                  U5      (       d  M  U[        U5      S
 PM+     snmU4S jn[        R                   " 5       nSU;   a  U" S5        [        R"                  " 5       (       a  T/ -  m[        R$                  " SSR'                  T5      -   /5         [        R(                  " [         R*                  S   5        [        R.                  " 5         [        R0                  " 5         [        R2                  " 5         [        R4                  " 5         g
! [
         a    Sn GNf = fs  snf ! [,         a6    S/[         l        [        R(                  " [         R*                  S   5         Nf = f)zF
Enable reading gflags from environment variables.

Returns:
    None
unittestOMP_NUM_THREADS1r   z WARNING: OMP_NUM_THREADS set to z, not 1. The computation speed will not be optimized if you use data parallel. It will fail if this PaddlePaddle binary is compiled with OpenBlas since OpenBlas does not support multi-threads.)filez"PLEASE USE OMP_NUM_THREADS WISELY.NVIDIA_TF32_OVERRIDEN0FLAGS_c                 6   > U T;   a  TR                  U 5        g g )N)remove)nameread_env_flagss    T/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/paddle/base/__init__.pyremove_flag_if_exists,__bootstrap__.<locals>.remove_flag_if_exists   s    >!!!$' "    Darwinuse_pinned_memoryz--tryfromenv=,r    )sysmodulesintosgetenv
ValueErrorprintstderrstrenvironr
   globalskeys
startswithlenplatformsystemis_compiled_with_ipuinit_gflagsjoin	init_glogargv	Exceptioninit_memory_methodinit_devicesinit_tensor_operantsinit_default_kernel_signatures)in_testnum_threadsflag_prefixkeyrd   sysstrrb   s         @rc   __bootstrap__r      s    CKK'G"))$5s;< Q.{m <8 8 	
 	2D$'$4BJJ !	yy'.6-0

)*K <<>&&((C>>+& 	 C(N( __F612  "" 	"o(@@AB$sxx{#
 	'')e  &0  $4sxx{#$s/    G? H<H'H ?HH=II)uatexitrn   ry   rk   core_suffixra   pathabspathdirname__file__seplegacy_coreexistsrr   writer`   r   erj   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)   data_feederr*   r+   r,   dygraph.baser-   r.   dygraph.tensor_patch_methodsr/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   layers.math_op_patchrL   
lod_tensorrM   rN   
param_attrrO   rP   rQ   rR   rS   rT   rU   rV   Tensorenable_imperativedisable_imperative__all__r   registerclear_executor_cachepirclear_cinn_compilation_cacheclear_device_managerclear_kernel_factoryProcessGroupIdMapdestroy rf   rc   <module>r      s    	  
 77d?K GGOOBGGOOH-.7'AKO  77>>+JJ,{:TAB
		+         ) # : = 
      4 0 7 7  
" $ 
=*D      )) * 55 6
 )) * )) * &&.. /w  s   .I I,%I''I,