"fix some typo"

wangkuiyi-patch-1
dzhwinter 7 years ago
parent 45f18b0062
commit 1f38cbf79b

@ -35,7 +35,7 @@ class UniformRandomBatchSizeLikeOpMaker : public BatchSizeLikeOpMaker {
protected: protected:
void Apply() override { void Apply() override {
AddComment(R"DOC( AddComment(R"DOC(
Uniform random operator UniformRandomBatchSizeLike operator.
This operator initializes a tensor with the same batch_size as the Input tensor This operator initializes a tensor with the same batch_size as the Input tensor
with random values sampled from a uniform distribution. with random values sampled from a uniform distribution.

@ -866,8 +866,7 @@ def array_write(x, i, array=None):
Variable: The output LOD_TENSOR_ARRAY where the input tensor is written. Variable: The output LOD_TENSOR_ARRAY where the input tensor is written.
Examples: Examples:
.. code-block:: python
.. code-block::python
tmp = fluid.layers.zeros(shape=[10], dtype='int32') tmp = fluid.layers.zeros(shape=[10], dtype='int32')
i = fluid.layers.fill_constant(shape=[1], dtype='int64', value=10) i = fluid.layers.fill_constant(shape=[1], dtype='int64', value=10)

@ -2935,7 +2935,7 @@ def split(input, num_or_sections, dim=-1, name=None):
will be named automatically. will be named automatically.
Returns: Returns:
List: The list of segmented tensor variables. list(Variable): The list of segmented tensor variables.
Examples: Examples:
.. code-block:: python .. code-block:: python

Loading…
Cancel
Save