提交 dbecff87 编写于 作者: T Tink_Y 提交者: Cheerego

rm fluid.core in desigin_idea (#674)

* Update fluid_design_idea.md

* Update fluid_design_idea_en.md
上级 959818b4
...@@ -194,7 +194,7 @@ Fluid中使用fluid.Executor(place)创建Executor,place属性由用户定义 ...@@ -194,7 +194,7 @@ Fluid中使用fluid.Executor(place)创建Executor,place属性由用户定义
下例代码表示创建一个Executor,其运行场所在CPU内: 下例代码表示创建一个Executor,其运行场所在CPU内:
```python ```python
cpu=core.CPUPlace() cpu=fluid.CPUPlace()
exe = fluid.Executor(cpu) exe = fluid.Executor(cpu)
``` ```
...@@ -329,7 +329,7 @@ Fluid使用Executor来执行网络训练,Executor运行细节请参考[Executo ...@@ -329,7 +329,7 @@ Fluid使用Executor来执行网络训练,Executor运行细节请参考[Executo
创建Executor只需调用 fluid.Executor(place) 即可,在此之前请您依据训练场所定义place变量: 创建Executor只需调用 fluid.Executor(place) 即可,在此之前请您依据训练场所定义place变量:
```python ```python
#在CPU内执行训练 #在CPU内执行训练
cpu = fluid.core.CPUPlace() cpu = fluid.CPUPlace()
#创建Executor #创建Executor
exe = fluid.Executor(cpu) exe = fluid.Executor(cpu)
``` ```
......
...@@ -195,7 +195,7 @@ Fluid uses Fluid.Executor(place) to create an Executor. The place attribute is d ...@@ -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: The following code example creates an Executor that runs on CPU:
```python ```python
cpu=core.CPUPlace() cpu=fluid.CPUPlace()
exe = fluid.Executor(cpu) exe = fluid.Executor(cpu)
``` ```
...@@ -330,7 +330,7 @@ Fluid uses Executor to perform network training. For details on Executor operati ...@@ -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: To create an Executor, simply call fluid.Executor(place). Before that, please define a place variable based on the training site:
```python ```python
#Execute training on CPU #Execute training on CPU
cpu = fluid.core.CPUPlace() cpu = fluid.CPUPlace()
#Create Executor #Create Executor
exe = fluid.Executor(cpu) exe = fluid.Executor(cpu)
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册