File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 24
24
- [ 飞桨自定义接入硬件后端(燧原GCU)] ( backends/gcu/README_cn.md )
25
25
- [ 飞桨自定义接入硬件后端(太初SDAA)] ( backends/sdaa/README_cn.md )
26
26
- [ 飞桨自定义接入硬件后端(沐曦METAX)] ( backends/metax_gpu/README_cn.md )
27
+ - [ 飞桨自定义接入硬件后端(天数ILUVATAR)] ( backends/iluvatar_gpu/README_cn.md )
27
28
28
29
## 版权和许可证
29
30
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ file(
119
119
${PADDLE_SOURCE_DIR} /paddle/phi/kernels/gpu/c_embedding_grad_kernel.cu
120
120
${PADDLE_SOURCE_DIR} /paddle/phi/kernels/gpu/c_embedding_kernel.cu
121
121
${PADDLE_SOURCE_DIR} /paddle/phi/kernels/gpu/c_identity_kernel.cu
122
+ ${PADDLE_SOURCE_DIR} /paddle/phi/kernels/gpu/c_softmax_with_cross_entropy_grad_kernel.cu
122
123
${PADDLE_SOURCE_DIR} /paddle/phi/kernels/gpu/cast_kernel.cu
123
124
${PADDLE_SOURCE_DIR} /paddle/phi/kernels/gpu/clip_grad_kernel.cu
124
125
${PADDLE_SOURCE_DIR} /paddle/phi/kernels/gpu/clip_kernel.cu
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ #include " paddle/phi/core/kernel_registry.h"
16
+ #include " paddle/phi/kernels/gpu/c_softmax_with_cross_entropy_grad_kernel.cu" // NOLINT
17
+
18
+ PD_CUSTOM_KERNEL_REGISTER (c_softmax_with_cross_entropy_grad,
19
+ iluvatar_gpu,
20
+ ALL_LAYOUT,
21
+ phi::CSoftmaxWithCrossEntropyGradKernel,
22
+ float ,
23
+ phi::dtype::float16) {}
You can’t perform that action at this time.
0 commit comments