-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add dense_sequence in capi #320
add dense_sequence in capi #320
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add a README about how to run this demo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请先完善一下示例的整体组织结构。
|
||
# Python byte code | ||
*.pyc | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
69 ~ 72 没有必要,不会生成的删掉。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
*.vcxproj | ||
*vcxproj.* | ||
|
||
# MinGW generated files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
62~ 64 没有必要,不会生成的删掉。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
# Vim temporary files | ||
.*.swp | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
47 ~ 60 没有必要,不会生成的删掉。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -0,0 +1,73 @@ | |||
# This file is used to ignore files which are generated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请清理一下这个文件,把没有必要的都删掉。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
#include <paddle/capi.h> | ||
#include <time.h> | ||
|
||
#include "../common/common.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 这个文件在当前的目录结构下是没有的。
- 作为一个示例,请保证是自完备的。
- 需要让其他人按照readme中的步骤逐步操作便可以运行起这个例子。
- 不要让用户去猜/或者去找这些依赖在哪里。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里所有的capi demo都会用到 common.h 头文件,所以会放在一个单独的common目录下
aux_source_directory(. SRC_LIST) | ||
add_executable(${PROJECT_NAME} ${SRC_LIST}) | ||
set_property(TARGET ${PROJECT_NAME} PROPERTY C_STANDARD 99) | ||
target_link_libraries(${PROJECT_NAME} -lpaddle_capi_shared) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要增加并更新一下README,否则这些动态链接库从哪里来呢 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CMakeLists.txt挺短的,是不是可以写成Makefile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chengduoZH 谢谢建议,这里是按照 /~https://github.com/PaddlePaddle/Paddle/tree/develop/paddle/capi/examples/model_inference/dense 的形式来组织的,如果有需要可以进行调整。
resolve #319