提交 d0ac5a6e 编写于 作者: Y Youwei Song 提交者: Tao Luo

fix new_op build folder, test=develop (#1128)

上级 f681e2de
......@@ -466,7 +466,7 @@ framework::OpKernelType ConvOp::GetExpectedKernelType(
### 编译
运行下面命令可以进行编译:
`build/paddle/fluid/operators`目录下,运行下面命令可以进行编译:
```
make mul_op
......@@ -559,7 +559,7 @@ Op单元测试继承自`OpTest`。各项具体的单元测试在`TestMulOp`里
`python/paddle/fluid/tests/unittests/` 目录下新增的 `test_*.py` 单元测试会被自动加入工程进行编译。
请注意,**不同于Op的编译测试,运行单元测试测时需要编译整个工程**,并且编译时需要打开`WITH_TESTING`, 即`cmake -DWITH_TESTING=ON ..`。编译成功后,执行下面的命令来运行单元测试:
请注意,**运行单元测试测时需要编译整个工程**,并且编译时需要打开`WITH_TESTING`, 即`cmake -DWITH_TESTING=ON ..`。编译成功后,执行下面的命令来运行单元测试:
```bash
make test ARGS="-R test_mul_op -V"
......
......@@ -267,7 +267,7 @@ The definition of its corresponding backward operator, if applicable, is similar
<a name="Compilation"></a>
### Compilation
Run the following commands to compile.
In folder `build/paddle/fluid/operators`, run the following commands to compile.
```
make mul_op
......@@ -357,7 +357,7 @@ In the backward operator test:
Any new unit testing file of the format `test_*.py` added to the directory `python/paddle/fluid/tests/unittests/` is automatically added to the project to compile.
Note that **unlike the compile test for Ops, running unit tests requires compiling the entire project** and requires compiling with flag `WITH_TESTING` on i.e. `cmake paddle_dir -DWITH_TESTING=ON`.
Note that **running unit tests requires compiling the entire project** and requires compiling with flag `WITH_TESTING` on i.e. `cmake paddle_dir -DWITH_TESTING=ON`.
After successfully compiling the project, run the following command to run unit tests:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册