Skip to content

Commit f9bebfe

Browse files
committed
polish doc: lod_rank_table, embedding
1 parent 24fea62 commit f9bebfe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/paddle/fluid/layers/control_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def lod_rank_table(x, level=0):
706706
.. code-block:: python
707707
708708
x = fluid.layers.data(name='x', shape=[10],
709-
dtype='float32', lod_level=1)
709+
dtype='float32', lod_level=1)
710710
out = layers.lod_rank_table(x=x, level=0)
711711
"""
712712
helper = LayerHelper("lod_rank_table", **locals())

python/paddle/fluid/layers/nn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ def embedding(input,
173173
have two elements which indicate the size of the dictionary of
174174
embeddings and the size of each embedding vector respectively.
175175
is_sparse(bool): The flag indicating whether to use sparse update.
176-
is_distributed (bool): Whether to run lookup table from remote parameter server.
176+
is_distributed(bool): Whether to run lookup table from remote parameter server.
177177
padding_idx(int|long|None): If :attr:`None`, it makes no effect to lookup.
178178
Otherwise the given :attr:`padding_idx` indicates padding the output
179179
with zeros whenever lookup encounters it in :attr:`input`. If
180-
:math:`padding_idx < 0`, the padding_idx to use in lookup is
180+
:math:`padding_idx < 0`, the :attr:`padding_idx` to use in lookup is
181181
:math:`size[0] + dim`.
182182
param_attr(ParamAttr): Parameters for this layer
183183
dtype(np.dtype|core.VarDesc.VarType|str): The type of data : float32, float_16, int etc

0 commit comments

Comments
 (0)