【CUDA Kernel No.74、75】lookup_table、lookup_table_grad算子Kernel修复 -part #75645
Merged
luotao1 merged 22 commits intoPaddlePaddle:developfrom Oct 31, 2025
Merged
【CUDA Kernel No.74、75】lookup_table、lookup_table_grad算子Kernel修复 -part #75645luotao1 merged 22 commits intoPaddlePaddle:developfrom
luotao1 merged 22 commits intoPaddlePaddle:developfrom
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
YqGe585
suggested changes
Oct 9, 2025
| DenseTensor *out); | ||
|
|
||
| template <typename T, typename Context> | ||
| void LookupTableKernel(const Context &dev_ctx, |
Member
There was a problem hiding this comment.
cpu 和 gpu kernel名称不同的,在gpu目录下新增头文件,其中仅声明gpu kernel即可。
YqGe585
suggested changes
Oct 10, 2025
| SelectedRows *w_grad); | ||
|
|
||
| template <typename T, typename Context> | ||
| void LookupTableGradKernel(const Context &dev_ctx, |
Member
There was a problem hiding this comment.
cpu的kernel声明应当去掉,并且此文件应当放在gpu目录中
YqGe585
suggested changes
Oct 10, 2025
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| #include "paddle/phi/kernels/lookup_table_grad_kernel.h" |
42 tasks
Member
|
请修复codestyle |
Contributor
Author
|
/re-run all-failed |
Contributor
Author
|
/re-run all-failed |
YqGe585
approved these changes
Oct 30, 2025
| ' | ||
| HeaderFilterRegex: '^(paddle/(?!cinn)).*$' | ||
| AnalyzeTemporaryDtors: false | ||
| WarningsAsErrors: '*' |
Contributor
Author
|
/re-run all-failed |
Contributor
Author
|
/re-run all-failed |
luotao1
approved these changes
Oct 31, 2025
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.
PR Category
Performance Optimization
PR Types
Bug fixes
Description
Add paddle/phi/kernels/lookup_table_kernel.h和paddle/phi/kernels/lookup_table_grad_kernel.h