
    IЦi                        S SK Jr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  SSKJr  SS/rSrS rS	 r\" \S
5      rS \l        S \l        \" SS9" \5        \" \S5      rS \l        S \l        \" SS9" \5        S\\\4   S\\\   \4   4S jrS\\   S\S\\\4   4S jrS\\   S\\\   \4   4S jrS\\   S\S\\   4S jr\" \\\S\S9  \" \\\S\S9  g)    )AnyDictIterableListTuple)_dict_flatten_dict_flatten_with_keys_dict_unflatten_list_flatten_list_flatten_with_keys_list_unflattenContextregister_pytree_node   )compatibilityimmutable_listimmutable_dictzIf you are attempting to modify the kwargs or args of a torch.fx.Node object,
instead create a new copy of it and assign the copy to the node:
    new_args = ... # copy and mutate args
    node.args = new_args
c                 R    [        S[        U 5      R                   S[         35      e)N'z$' object does not support mutation. )NotImplementedErrortype__name___help_mutation)selfargskwargss      ]/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/torch/fx/immutable_collections.py_no_mutationr      s,    

DJ  D^DTU     c                 n    [        SU R                  -   U 40 5      nU H  n[        X#[        5        M     U$ )N
immutable_)r   r   setattrr   )basemutable_functions	containerattrs       r   _create_immutable_containerr'   "   s5    \DMM1D7B?I!	. "r   )__delitem____iadd____imul____setitem__appendclearextendinsertpopremovereversesortc                 8    [         [        [        U 5      5      44$ N)r   tupleiterr   s    r   <lambda>r9   :   s    .5d;L:N)Or   c                 *    [        [        U 5      5      $ r5   )hashr6   r8   s    r   r9   r9   ;   s    tE$K'8r   T)is_backward_compatible)r(   __ior__r+   r-   r0   popitem
setdefaultupdatec                 B    [         [        U R                  5       5      44$ r5   )r   r7   itemsr8   s    r   r9   r9   L   s    .4

;M:O)Pr   c                 F    [        [        U R                  5       5      5      $ r5   )r;   r6   rB   r8   s    r   r9   r9   M   s    tE$**,,?'@r   dreturnc                     [        U 5      $ r5   )r   rD   s    r   _immutable_dict_flattenrH   R       r   valuescontextc                 *    [        [        X5      5      $ r5   )r   r
   rJ   rK   s     r   _immutable_dict_unflattenrN   V        /&:;;r   c                     [        U 5      $ r5   )r   rG   s    r   _immutable_list_flattenrQ   ]   rI   r   c                 *    [        [        X5      5      $ r5   )r   r   rM   s     r   _immutable_list_unflattenrS   a   rO   r   z-torch.fx.immutable_collections.immutable_dict)serialized_type_nameflatten_with_keys_fnz-torch.fx.immutable_collections.immutable_listN)typingr   r   r   r   r   torch.utils._pytreer   r	   r
   r   r   r   r   r   _compatibilityr   __all__r   r   r'   listr   
__reduce____hash__dictr   rH   rN   rQ   rS    r   r   <module>r_      su   3 3	 	 	 * -
. -" P 8  T *> :,	 Q @  T *> :tCH~ %S	78J2K <SM<< 
#s(^<tCy U49g3E-F <SM<< 
#Y< H0 H0r   