File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
python/paddle/fluid/layers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -706,7 +706,7 @@ def lod_rank_table(x, level=0):
706
706
.. code-block:: python
707
707
708
708
x = fluid.layers.data(name='x', shape=[10],
709
- dtype='float32', lod_level=1)
709
+ dtype='float32', lod_level=1)
710
710
out = layers.lod_rank_table(x=x, level=0)
711
711
"""
712
712
helper = LayerHelper ("lod_rank_table" , ** locals ())
Original file line number Diff line number Diff line change @@ -173,11 +173,11 @@ def embedding(input,
173
173
have two elements which indicate the size of the dictionary of
174
174
embeddings and the size of each embedding vector respectively.
175
175
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.
177
177
padding_idx(int|long|None): If :attr:`None`, it makes no effect to lookup.
178
178
Otherwise the given :attr:`padding_idx` indicates padding the output
179
179
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
181
181
:math:`size[0] + dim`.
182
182
param_attr(ParamAttr): Parameters for this layer
183
183
dtype(np.dtype|core.VarDesc.VarType|str): The type of data : float32, float_16, int etc
You can’t perform that action at this time.
0 commit comments