提交 e3bc4ecd 编写于 作者: A Aurelius84

fix syntax problem

上级 eb98b1fd
...@@ -91,7 +91,7 @@ InputSpec ...@@ -91,7 +91,7 @@ InputSpec
参数: 参数:
- **batch_size** (int) - 被插入的batch size整型数值 - **batch_size** (int) - 被插入的batch size整型数值
返回: 更新shape信息后的``InputSpec`` 对象 返回: 更新shape信息后的 ``InputSpec`` 对象
返回类型:InputSpec 返回类型:InputSpec
...@@ -112,7 +112,7 @@ InputSpec ...@@ -112,7 +112,7 @@ InputSpec
该接口将当前InputSpec对象shape[0]值移除。 该接口将当前InputSpec对象shape[0]值移除。
返回: 更新shape信息后的``InputSpec`` 对象 返回: 更新shape信息后的 ``InputSpec`` 对象
返回类型:InputSpec 返回类型:InputSpec
......
...@@ -34,6 +34,7 @@ data ...@@ -34,6 +34,7 @@ data
**代码示例**: **代码示例**:
.. code-block:: python .. code-block:: python
import paddle import paddle
import paddle.fluid as fluid import paddle.fluid as fluid
import numpy as np import numpy as np
...@@ -49,7 +50,7 @@ data ...@@ -49,7 +50,7 @@ data
z = x + y z = x + y
# In this example, we will feed x and y with np-ndarry "1" # In this example, we will feed x and y with np-ndarray "1"
# and fetch z, like implementing "1 + 1 = 2" in PaddlePaddle # and fetch z, like implementing "1 + 1 = 2" in PaddlePaddle
feed_data = np.ones(shape=[3, 2, 1], dtype=np.float32) feed_data = np.ones(shape=[3, 2, 1], dtype=np.float32)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册