-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Conversation
Thanks for your contribution! |
paddle/pten/api/include/manual_api.h
Outdated
@@ -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); |
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.
manual_api和api_custom_impl定位有点模糊了
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. 已将manual_api删掉 thx~
PR types
New features
PR changes
Others
Describe
C++ API支持自定义实现API逻辑。
使用方法:
api_custom_impl.h
和api_custom_impl.cc
里完成自定义实现API的相关代码的声明和定义api.yaml
配置文件里使用invoke
配置项完成自定义代码的调用