o
    + iÃ  ã                   @   sL  d dl mZ d dlmZmZ d dlmZmZmZm	Z	 d dl
mZmZmZ d dlmZmZmZmZmZmZmZmZmZmZmZmZmZmZ d dlmZ d dlm Z m!Z! dd	l"m#Z#m$Z$ dd
l%m&Z&m'Z'm(Z( ddl)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9 ddl:m;Z;m<Z< ddl=m>Z> ddl?m@Z@mAZAmBZB g d¢ZCdS )é   )ÚScope)Úappend_backwardÚ	gradients)ÚBuildStrategyÚCompiledProgramÚIpuCompiledProgramÚIpuStrategy)ÚExecutorÚglobal_scopeÚscope_guard)ÚOperatorÚ	ParameterÚProgramÚVariableÚ
cpu_placesÚcuda_placesÚdefault_main_programÚdefault_startup_programÚdevice_guardÚipu_shard_guardÚ
name_scopeÚprogram_guardÚset_ipu_shardÚ
xpu_places)ÚWeightNormParamAttr)Úcreate_global_varÚcreate_parameteré   )ÚampÚnn)Ú	InputSpecÚdataÚsetitem)Údeserialize_persistablesÚdeserialize_programÚis_persistableÚloadÚload_from_fileÚload_inference_modelÚload_program_stateÚ	load_varsÚnormalize_programÚsaveÚsave_inference_modelÚsave_to_fileÚ	save_varsÚserialize_persistablesÚserialize_programÚset_program_state)ÚExponentialMovingAverageÚpy_func)ÚPrint)ÚaccuracyÚaucÚctr_metric_bundle)-r   r   r	   r
   r   r   r   r   r   r   r5   r4   r   r   r   r3   r   r   r   r!   r    r,   r&   r-   r(   r1   r0   r.   r$   r#   r'   r+   r)   r2   r   r   r   r   r   r6   r7   r   r   r   r8   N)DÚbaser   Zbase.backwardr   r   Zbase.compilerr   r   r   r   Zbase.executorr	   r
   r   Zbase.frameworkr   r   r   r   r   r   r   r   r   r   r   r   r   r   Zbase.param_attrr   Ztensor.creationr   r   Ú r   r   Úinputr    r!   r"   Úior#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   Z	nn.commonr3   r4   Znn.control_flowr5   Z	nn.metricr6   r7   r8   Ú__all__© r>   r>   úb/home/app/PaddleOCR-VL-test/.venv_paddleocr/lib/python3.10/site-packages/paddle/static/__init__.pyÚ<module>   s   @H