Skip to content
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

Support custom implement for C++ API #39521

Merged
merged 21 commits into from
Feb 26, 2022
Merged

Conversation

zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Feb 14, 2022

PR types

New features

PR changes

Others

Describe

C++ API支持自定义实现API逻辑。

使用方法:

  1. api_custom_impl.hapi_custom_impl.cc里完成自定义实现API的相关代码的声明和定义
  2. api.yaml配置文件里使用invoke配置项完成自定义代码的调用

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@@ -30,11 +30,5 @@ namespace experimental {
// TODO(chenweihang): Replace backend by place when place is ready
PADDLE_API Tensor copy_to(const Tensor& x, Backend backend, bool blocking);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manual_api和api_custom_impl定位有点模糊了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. 已将manual_api删掉 thx~

@zyfncg zyfncg merged commit caea126 into PaddlePaddle:develop Feb 26, 2022
@zyfncg zyfncg deleted the custom_api_impl branch February 26, 2022 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants