update the doc for how to write the operators.#3873
Merged
lcy-seso merged 3 commits intoPaddlePaddle:developfrom Sep 6, 2017
Merged
update the doc for how to write the operators.#3873lcy-seso merged 3 commits intoPaddlePaddle:developfrom
lcy-seso merged 3 commits intoPaddlePaddle:developfrom
Conversation
luotao1
reviewed
Sep 5, 2017
doc/howto/dev/new_op_cn.md
Outdated
|
|
||
| 下面命令可以编译: | ||
|
|
||
| 无需修改[paddle/operators/CMakeLists.txt](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/operators/CMakeLists.txt)文件,`paddle/operators` 目录下新增的 `*_op.cc` 文件会被自动加入编译。 |
Contributor
There was a problem hiding this comment.
如果是DEPS的op,需要改cmakelists.txt。不过cmake这块还在修改和完善,这里先这样写着也可以。或者说明一下:没有DEPS的op自动加入编译。
qingqing01
reviewed
Sep 5, 2017
doc/howto/dev/new_op_cn.md
Outdated
|
|
||
|
|
||
| ### 编译和执行 | ||
| ### 编译和执行 |
Contributor
There was a problem hiding this comment.
下面308行,能否帮忙改成:
编译时需要打开WITH_TESTING, 即 cmake paddle_dir -DWITH_TESTING=ON,请注意,运行单测时的需要编译整个工程,不同于上述Op的编译测试,编译成功之后执行单测命令为:
主要是为了和Op里的编译测试区分开,上述Op里编译,可以只编译单独的一个文件,方便测试。 这里Python测试需要生成core.so,需要编译整个工程。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.