[PTen] Adapt to inference api dir for pten #37415
Merged
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.
PR types
Function optimization
PR changes
APIs
Describe
[PTen] Adapt to inference api dir for pten
paddle/pten/***
,对外公开头文件的时候也仍然按照这个路径公开,而推理公开的头文件路径统一为paddle/include/***
,加上自定义算子在推理中目前整体是属于experimental功能,所以在推理中,pten头文件路径为paddle/include/experimental/pten/***
,本PR通过CMake在编译时将头文件的路径进行了更新推理目前没有自定义算子的单测,因此本PR在推理的官方示例上进行了验证:
目前本地已验证通过,顺便对示例进行了一些细节的完善,见 PaddlePaddle/Paddle-Inference-Demo#191