File tree Expand file tree Collapse file tree 4 files changed +30
-8
lines changed Expand file tree Collapse file tree 4 files changed +30
-8
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,13 @@ namespace ops = paddle::operators;
19
19
20
20
REGISTER_OP_GPU_KERNEL (
21
21
elementwise_add,
22
- ops::ElementwiseAddKernel<paddle::platform::GPUPlace, float >);
22
+ ops::ElementwiseAddKernel<paddle::platform::GPUPlace, float >,
23
+ ops::ElementwiseAddKernel<paddle::platform::GPUPlace, double >,
24
+ ops::ElementwiseAddKernel<paddle::platform::GPUPlace, int >,
25
+ ops::ElementwiseAddKernel<paddle::platform::GPUPlace, int64_t >);
23
26
REGISTER_OP_GPU_KERNEL (
24
27
elementwise_add_grad,
25
- ops::ElementwiseAddGradKernel<paddle::platform::GPUPlace, float >);
28
+ ops::ElementwiseAddGradKernel<paddle::platform::GPUPlace, float >,
29
+ ops::ElementwiseAddGradKernel<paddle::platform::GPUPlace, double >,
30
+ ops::ElementwiseAddGradKernel<paddle::platform::GPUPlace, int >,
31
+ ops::ElementwiseAddGradKernel<paddle::platform::GPUPlace, int64_t >);
Original file line number Diff line number Diff line change @@ -19,7 +19,13 @@ namespace ops = paddle::operators;
19
19
20
20
REGISTER_OP_GPU_KERNEL (
21
21
elementwise_div,
22
- ops::ElementwiseDivKernel<paddle::platform::GPUPlace, float >);
22
+ ops::ElementwiseDivKernel<paddle::platform::GPUPlace, float >,
23
+ ops::ElementwiseDivKernel<paddle::platform::GPUPlace, double >,
24
+ ops::ElementwiseDivKernel<paddle::platform::GPUPlace, int >,
25
+ ops::ElementwiseDivKernel<paddle::platform::GPUPlace, int64_t >);
23
26
REGISTER_OP_GPU_KERNEL (
24
27
elementwise_div_grad,
25
- ops::ElementwiseDivGradKernel<paddle::platform::GPUPlace, float >);
28
+ ops::ElementwiseDivGradKernel<paddle::platform::GPUPlace, float >,
29
+ ops::ElementwiseDivGradKernel<paddle::platform::GPUPlace, double >,
30
+ ops::ElementwiseDivGradKernel<paddle::platform::GPUPlace, int >,
31
+ ops::ElementwiseDivGradKernel<paddle::platform::GPUPlace, int64_t >);
Original file line number Diff line number Diff line change @@ -20,8 +20,12 @@ namespace ops = paddle::operators;
20
20
REGISTER_OP_GPU_KERNEL (
21
21
elementwise_mul,
22
22
ops::ElementwiseMulKernel<paddle::platform::GPUPlace, float >,
23
- ops::ElementwiseMulKernel<paddle::platform::GPUPlace, double >);
23
+ ops::ElementwiseMulKernel<paddle::platform::GPUPlace, double >,
24
+ ops::ElementwiseMulKernel<paddle::platform::GPUPlace, int >,
25
+ ops::ElementwiseMulKernel<paddle::platform::GPUPlace, int64_t >);
24
26
REGISTER_OP_GPU_KERNEL (
25
27
elementwise_mul_grad,
26
28
ops::ElementwiseMulGradKernel<paddle::platform::GPUPlace, float >,
27
- ops::ElementwiseMulGradKernel<paddle::platform::GPUPlace, double >);
29
+ ops::ElementwiseMulGradKernel<paddle::platform::GPUPlace, double >,
30
+ ops::ElementwiseMulGradKernel<paddle::platform::GPUPlace, int >,
31
+ ops::ElementwiseMulGradKernel<paddle::platform::GPUPlace, int64_t >);
Original file line number Diff line number Diff line change @@ -19,7 +19,13 @@ namespace ops = paddle::operators;
19
19
20
20
REGISTER_OP_GPU_KERNEL (
21
21
elementwise_sub,
22
- ops::ElementwiseSubKernel<paddle::platform::GPUPlace, float >);
22
+ ops::ElementwiseSubKernel<paddle::platform::GPUPlace, float >,
23
+ ops::ElementwiseSubKernel<paddle::platform::GPUPlace, double >,
24
+ ops::ElementwiseSubKernel<paddle::platform::GPUPlace, int >,
25
+ ops::ElementwiseSubKernel<paddle::platform::GPUPlace, int64_t >);
23
26
REGISTER_OP_GPU_KERNEL (
24
27
elementwise_sub_grad,
25
- ops::ElementwiseSubGradKernel<paddle::platform::GPUPlace, float >);
28
+ ops::ElementwiseSubGradKernel<paddle::platform::GPUPlace, float >,
29
+ ops::ElementwiseSubGradKernel<paddle::platform::GPUPlace, double >,
30
+ ops::ElementwiseSubGradKernel<paddle::platform::GPUPlace, int >,
31
+ ops::ElementwiseSubGradKernel<paddle::platform::GPUPlace, int64_t >);
You can’t perform that action at this time.
0 commit comments