Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#165 from tink2123/develop
Browse files Browse the repository at this point in the history
cherry-pick from release/1.0.0 to develop
  • Loading branch information
shanyi15 committed Oct 12, 2018
2 parents f3d38dd + 0c56689 commit 790be65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ a = fluid.layers.data(name="a",shape=[3,4],dtype='int64')

#若图片的宽度和高度在运行时可变,将宽度和高度定义为None。
#shape的三个维度含义分别是:channel、图片的宽度、图片的高度
b = fluid.layers.data(name="image"shape=[3,None,None]dtpye="float32")
b = fluid.layers.data(name="image",shape=[3,None,None],dtpye="float32")
```

其中,dtpye=“int64”表示有符号64位整数数据类型,更多Fluid目前支持的数据类型请查看:[Fluid目前支持的数据类型](../../user_guides/howto/prepare_data/feeding_data.html#fluid)
Expand Down Expand Up @@ -221,7 +221,7 @@ with fluid.layers.control_flow.Switch() as switch:

关于 Fluid 中 Program 的详细设计思想,可以参考阅读[Fluid设计思想](../../user_guides/design_idea/fluid_design_idea.html)

更多 Fluid 中的控制流,可以参考阅读[API文档](http://www.paddlepaddle.org/documentation/api/zh/0.15.0/layers.html#permalink-1-control_flow)
更多 Fluid 中的控制流,可以参考阅读[API文档](http://www.paddlepaddle.org/documentation/api/zh/1.0.0/layers.html#permalink-1-control_flow)


## 使用Executor执行Program
Expand Down

0 comments on commit 790be65

Please sign in to comment.