o
    NeE  ã                   @   s8   d dl mZ d dlmZ d dlmZ G dd„ deƒZdS )é    )Úprint_function)Ú_SaveLoadConfig)ÚTranslatedLayerc                   @   s   e Zd ZdZddd„ZdS )ÚStaticModelRunnera)  
    A Dynamic graph Layer for loading inference program and related parameters,
    and then performing fine-tune training or inference.

    .. note::
        This is a temporary API, which will be deprecated later, please use 
        `fluid.dygraph.jit.load` to achieve the same function.
    Nc                 C   s.   t ƒ }|d ur
||_|d ur||_t ||¡S )N)r   Úmodel_filenameÚparams_filenamer   Z
_construct)ÚclsZ	model_dirr   r   Zconfigs© r	   úRD:\Projects\ConvertPro\env\Lib\site-packages\paddle/fluid/dygraph/static_runner.pyÚ__new__!   s   zStaticModelRunner.__new__)NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r	   r	   r	   r
   r      s    	r   N)Ú
__future__r   Zpaddle.fluid.dygraph.jitr   Zpaddle.fluid.dygraph.ior   Úobjectr   r	   r	   r	   r
   Ú<module>   s   