Skip to content

Commit

Permalink
rm fluid.core in desigin_idea (PaddlePaddle#674)
Browse files Browse the repository at this point in the history
* Update fluid_design_idea.md

* Update fluid_design_idea_en.md
  • Loading branch information
tink2123 authored and shanyi15 committed Mar 6, 2019
1 parent 959818b commit dbecff8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/fluid/advanced_usage/design_idea/fluid_design_idea.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Fluid中使用fluid.Executor(place)创建Executor,place属性由用户定义
下例代码表示创建一个Executor,其运行场所在CPU内:
```python
cpu=core.CPUPlace()
cpu=fluid.CPUPlace()
exe = fluid.Executor(cpu)
```

Expand Down Expand Up @@ -329,7 +329,7 @@ Fluid使用Executor来执行网络训练,Executor运行细节请参考[Executo
创建Executor只需调用 fluid.Executor(place) 即可,在此之前请您依据训练场所定义place变量:
```python
#在CPU内执行训练
cpu = fluid.core.CPUPlace()
cpu = fluid.CPUPlace()
#创建Executor
exe = fluid.Executor(cpu)
```
Expand Down
4 changes: 2 additions & 2 deletions doc/fluid/advanced_usage/design_idea/fluid_design_idea_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Fluid uses Fluid.Executor(place) to create an Executor. The place attribute is d
The following code example creates an Executor that runs on CPU:
```python
cpu=core.CPUPlace()
cpu=fluid.CPUPlace()
exe = fluid.Executor(cpu)
```

Expand Down Expand Up @@ -330,7 +330,7 @@ Fluid uses Executor to perform network training. For details on Executor operati
To create an Executor, simply call fluid.Executor(place). Before that, please define a place variable based on the training site:
```python
#Execute training on CPU
cpu = fluid.core.CPUPlace()
cpu = fluid.CPUPlace()
#Create Executor
exe = fluid.Executor(cpu)
```
Expand Down

0 comments on commit dbecff8

Please sign in to comment.