Ë
    ‡\;jå  ã                   ó^   — g Z  G d „ d«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy)	c                   ó   — e Zd ZdZd„ Zd„ Zy)Ú	EntryAttraX  
    Entry Config for paddle.static.nn.sparse_embedding with Parameter Server.

    Examples:
        .. code-block:: python

            >>> import paddle
            >>> paddle.enable_static()

            >>> sparse_feature_dim = 1024
            >>> embedding_size = 64

            >>> entry = paddle.distributed.ProbabilityEntry(0.1)

            >>> input = paddle.static.data(name='ins', shape=[1], dtype='int64')

            >>> emb = paddle.static.nn.sparse_embedding(
            ...     input=input,
            ...     size=[sparse_feature_dim, embedding_size],
            ...     is_test=False,
            ...     entry=entry,
            ...     param_attr=paddle.ParamAttr(
            ...         name="SparseFeatFactors",
            ...         initializer=paddle.nn.initializer.Uniform()
            ...     )
            ... )

    c                 ó   — d | _         y )N)Ú_name©Úselfs    úfG:\00. PROJECTS\API\Inventory\templateJSON\kerjaOCR\Lib\site-packages\paddle/distributed/entry_attr.pyÚ__init__zEntryAttr.__init__0   s	   € Øˆ�
ó    c                 ó   — t        d«      ‚)z–
        Returns the attributes of this parameter.

        Returns:
            Parameter attributes(map): The attributes of this parameter.
        zEntryAttr is base class)ÚNotImplementedErrorr   s    r   Ú_to_attrzEntryAttr._to_attr3   s   € ô "Ð";Ó<Ð<r
   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   © r
   r   r   r      s   „ ñò:ó=r
   r   c                   ó(   ‡ — e Zd ZdZˆ fd„Zd„ Zˆ xZS )ÚProbabilityEntrya
  
    Examples:
        .. code-block:: python

            >>> import paddle
            >>> paddle.enable_static()

            >>> sparse_feature_dim = 1024
            >>> embedding_size = 64

            >>> entry = paddle.distributed.ProbabilityEntry(0.1)

            >>> input = paddle.static.data(name='ins', shape=[1], dtype='int64')

            >>> emb = paddle.static.nn.sparse_embedding(
            ...     input=input,
            ...     size=[sparse_feature_dim, embedding_size],
            ...     is_test=False,
            ...     entry=entry,
            ...     param_attr=paddle.ParamAttr(
            ...         name="SparseFeatFactors",
            ...         initializer=paddle.nn.initializer.Uniform()
            ...     )
            ... )


    c                 óž   •— t         ‰| �  «        t        |t        «      st	        d«      ‚|dk  s|dk\  rt	        d«      ‚d| _        || _        y )Nz$probability must be a float in (0,1)é    é   Úprobability_entry)Úsuperr	   Ú
isinstanceÚfloatÚ
ValueErrorr   Ú_probability)r   ÚprobabilityÚ	__class__s     €r   r	   zProbabilityEntry.__init__Z   sN   ø€ Ü‰ÑÔä˜+¤uÔ-ÜÐCÓDÐDà˜!Ò˜{¨aÒ/ÜÐCÓDÐDà(ˆŒ
Ø'ˆÕr
   c                 ób   — dj                  | j                  t        | j                  «      g«      S ©NÚ:)Újoinr   Ústrr   r   s    r   r   zProbabilityEntry._to_attrf   s%   € Ø�x‰x˜Ÿ™¤S¨×):Ñ):Ó%;Ð<Ó=Ð=r
   ©r   r   r   r   r	   r   Ú__classcell__©r   s   @r   r   r   =   s   ø„ ñô8
(ö>r
   r   c                   ó(   ‡ — e Zd ZdZˆ fd„Zd„ Zˆ xZS )ÚCountFilterEntrya  
    Examples:
        .. code-block:: python

            >>> import paddle
            >>> paddle.enable_static()

            >>> sparse_feature_dim = 1024
            >>> embedding_size = 64

            >>> entry = paddle.distributed.CountFilterEntry(10)

            >>> input = paddle.static.data(name='ins', shape=[1], dtype='int64')

            >>> emb = paddle.static.nn.sparse_embedding(
            ...     input=input,
            ...     size=[sparse_feature_dim, embedding_size],
            ...     is_test=False,
            ...     entry=entry,
            ...     param_attr=paddle.ParamAttr(
            ...         name="SparseFeatFactors",
            ...         initializer=paddle.nn.initializer.Uniform()
            ...     )
            ... )

    c                 ó”   •— t         ‰| �  «        t        |t        «      st	        d«      ‚|dk  rt	        d«      ‚d| _        || _        y )Nz3count_filter must be a valid integer greater than 0r   z<count_filter must be a valid integer greater or equal than 0Úcount_filter_entry)r   r	   r   Úintr   r   Ú_count_filter)r   Úcount_filterr   s     €r   r	   zCountFilterEntry.__init__†   sS   ø€ Ü‰ÑÔä˜,¬Ô,ÜØEóð ð ˜!ÒÜØNóð ð *ˆŒ
Ø)ˆÕr
   c                 ób   — dj                  | j                  t        | j                  «      g«      S r!   )r#   r   r$   r-   r   s    r   r   zCountFilterEntry._to_attr–   s%   € Ø�x‰x˜Ÿ™¤S¨×);Ñ);Ó%<Ð=Ó>Ð>r
   r%   r'   s   @r   r)   r)   j   s   ø„ ñô6*ö ?r
   r)   c                   ó(   ‡ — e Zd ZdZˆ fd„Zd„ Zˆ xZS )ÚShowClickEntryaº  
    Examples:
        .. code-block:: python

            >>> import paddle
            >>> paddle.enable_static()

            >>> sparse_feature_dim = 1024
            >>> embedding_size = 64

            >>> shows = paddle.static.data(name='show', shape=[1], dtype='int64')
            >>> clicks = paddle.static.data(name='click', shape=[1], dtype='int64')
            >>> input = paddle.static.data(name='ins', shape=[1], dtype='int64')

            >>> entry = paddle.distributed.ShowClickEntry("show", "click")

            >>> emb = paddle.static.nn.sparse_embedding(
            ...     input=input,
            ...     size=[sparse_feature_dim, embedding_size],
            ...     is_test=False,
            ...     entry=entry,
            ...     param_attr=paddle.ParamAttr(
            ...         name="SparseFeatFactors",
            ...         initializer=paddle.nn.initializer.Uniform()
            ...     )
            ... )


    c                 ó¢   •— t         ‰| �  «        t        |t        «      rt        |t        «      st	        d«      ‚d| _        || _        || _        y )Nz"show_name click_name must be a strÚshow_click_entry)r   r	   r   r$   r   r   Ú
_show_nameÚ_click_name)r   Ú	show_nameÚ
click_namer   s      €r   r	   zShowClickEntry.__init__¹   sC   ø€ Ü‰ÑÔä˜)¤SÔ)´¸JÌÔ1LÜÐAÓBÐBà'ˆŒ
Ø#ˆŒØ%ˆÕr
   c                 óf   — dj                  | j                  | j                  | j                  g«      S r!   )r#   r   r4   r5   r   s    r   r   zShowClickEntry._to_attrÃ   s&   € Ø�x‰x˜Ÿ™ T§_¡_°d×6FÑ6FÐGÓHÐHr
   r%   r'   s   @r   r1   r1   š   s   ø„ ñô<&öIr
   r1   N)Ú__all__r   r   r)   r1   r   r
   r   Ú<module>r:      s?   ðð €÷(=ñ (=ôV*>�yô *>ôZ-?�yô -?ô`*I�Yõ *Ir
   