From 23b3fef062ce41d7b19060fb1190452c9160da59 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Tue, 28 Nov 2017 19:06:50 +0800 Subject: [PATCH] Make 'scale_op' supporting int and int64 (#5986) * Make 'scale_op' supporting int and int64 * refine .cu file --- paddle/operators/scale_op.cc | 4 +++- paddle/operators/scale_op.cu | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/paddle/operators/scale_op.cc b/paddle/operators/scale_op.cc index 5745580504f..e5c10fec4d8 100644 --- a/paddle/operators/scale_op.cc +++ b/paddle/operators/scale_op.cc @@ -77,4 +77,6 @@ REGISTER_OPERATOR(scale, ops::ScaleOp, ops::ScaleOpMaker, ops::ScaleGradMaker); REGISTER_OP_CPU_KERNEL(scale, ops::ScaleKernel, - ops::ScaleKernel); + ops::ScaleKernel, + ops::ScaleKernel, + ops::ScaleKernel); diff --git a/paddle/operators/scale_op.cu b/paddle/operators/scale_op.cu index 820fd4e6855..0d707751598 100644 --- a/paddle/operators/scale_op.cu +++ b/paddle/operators/scale_op.cu @@ -16,4 +16,6 @@ REGISTER_OP_GPU_KERNEL( scale, paddle::operators::ScaleKernel, - paddle::operators::ScaleKernel); + paddle::operators::ScaleKernel, + paddle::operators::ScaleKernel, + paddle::operators::ScaleKernel); -- GitLab