U
    yhr
                     @   s6   d dl mZ d dlmZ ejeej edddZdS )    )SetN)moduleignored_modulesuse_orig_paramsc                 C   s&   |   D ]}||krd|_||_qdS )z
    Annotates the submodules in ``module`` 's tree, except those in
    ``ignored_modules``, indicating that the submodules are FSDP-managed and
    saving the ``use_orig_params`` setting passed to the FSDP constructor.
    TN)modulesZ_is_fsdp_managed_moduleZ_fsdp_use_orig_params)r   r   r   	submodule r   V/var/www/html/venv/lib/python3.8/site-packages/torch/distributed/fsdp/_dynamo_utils.py_annotate_modules_for_dynamo   s    
r
   )typingr   Ztorch.nnnnModuleboolr
   r   r   r   r	   <module>   s
   