o
    ·2úh×  ã                   @   s,   d dl mZ d dl mZ dd„ Zdd„ ZdS )é    ©Úget_tensor_attr©Úset_tensor_attrc                 C   s   t | d|ƒ dS )zÒSets the Keras mask attribute for the given tensor in-place.

    Args:
        x: Input tensor.
        mask: The mask tensor to be set. If `None`, the `_keras_mask` attribute
            will be cleared.
    Ú_keras_maskNr   )ÚxÚmask© r	   ú[/var/www/html/chatgem/venv/lib/python3.10/site-packages/keras/src/backend/common/masking.pyÚset_keras_mask   s   r   c                 C   s
   t | dƒS )zÐGets the Keras mask attribute from the given tensor.

    Args:
        x: Input tensor.

    Returns:
        The mask tensor associated with the input tensor, or `None` if no mask
        has been set.
    r   r   )r   r	   r	   r
   Úget_keras_mask   s   

r   N)Ú*keras.src.backend.common.tensor_attributesr   r   r   r   r	   r	   r	   r
   Ú<module>   s    