|
|
|
@ -627,12 +627,14 @@ REGISTER_OP_CPU_KERNEL_FUNCTOR(reshape2, float, ops::ReshapeKernel, double,
|
|
|
|
|
|
|
|
|
|
REGISTER_OP_CPU_KERNEL_FUNCTOR(reshape2_grad, float, ops::ReshapeGradKernel,
|
|
|
|
|
double, ops::ReshapeGradKernel, int,
|
|
|
|
|
ops::ReshapeGradKernel, uint8_t,
|
|
|
|
|
ops::ReshapeGradKernel, int64_t,
|
|
|
|
|
ops::ReshapeGradKernel, bool,
|
|
|
|
|
ops::ReshapeGradKernel);
|
|
|
|
|
REGISTER_OP_CPU_KERNEL_FUNCTOR(reshape2_grad_grad, float,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, double,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, int,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, uint8_t,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, int64_t,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, bool,
|
|
|
|
|
ops::ReshapeDoubleGradKernel);
|
|
|
|
@ -640,20 +642,24 @@ REGISTER_OP_CPU_KERNEL_FUNCTOR(reshape2_grad_grad, float,
|
|
|
|
|
#ifdef PADDLE_WITH_CUDA
|
|
|
|
|
REGISTER_OP_CUDA_KERNEL_FUNCTOR(reshape, float, ops::ReshapeKernel, double,
|
|
|
|
|
ops::ReshapeKernel, int, ops::ReshapeKernel,
|
|
|
|
|
int64_t, ops::ReshapeKernel, plat::float16,
|
|
|
|
|
uint8_t, ops::ReshapeKernel, int64_t,
|
|
|
|
|
ops::ReshapeKernel, plat::float16,
|
|
|
|
|
ops::ReshapeKernel);
|
|
|
|
|
REGISTER_OP_CUDA_KERNEL_FUNCTOR(reshape_grad, float, ops::ReshapeGradKernel,
|
|
|
|
|
double, ops::ReshapeGradKernel, int,
|
|
|
|
|
ops::ReshapeGradKernel, int64_t,
|
|
|
|
|
ops::ReshapeGradKernel, uint8_t,
|
|
|
|
|
ops::ReshapeGradKernel, plat::float16,
|
|
|
|
|
|
|
|
|
|
ops::ReshapeGradKernel);
|
|
|
|
|
REGISTER_OP_CUDA_KERNEL_FUNCTOR(reshape2, float, ops::ReshapeKernel, double,
|
|
|
|
|
ops::ReshapeKernel, int, ops::ReshapeKernel,
|
|
|
|
|
int64_t, ops::ReshapeKernel, plat::float16,
|
|
|
|
|
uint8_t, ops::ReshapeKernel, int64_t,
|
|
|
|
|
ops::ReshapeKernel, plat::float16,
|
|
|
|
|
ops::ReshapeKernel, bool, ops::ReshapeKernel);
|
|
|
|
|
REGISTER_OP_CUDA_KERNEL_FUNCTOR(reshape2_grad, float, ops::ReshapeGradKernel,
|
|
|
|
|
double, ops::ReshapeGradKernel, int,
|
|
|
|
|
ops::ReshapeGradKernel, uint8_t,
|
|
|
|
|
ops::ReshapeGradKernel, int64_t,
|
|
|
|
|
ops::ReshapeGradKernel, plat::float16,
|
|
|
|
|
ops::ReshapeGradKernel, bool,
|
|
|
|
@ -662,6 +668,7 @@ REGISTER_OP_CUDA_KERNEL_FUNCTOR(reshape2_grad, float, ops::ReshapeGradKernel,
|
|
|
|
|
REGISTER_OP_CUDA_KERNEL_FUNCTOR(reshape2_grad_grad, float,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, double,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, int,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, uint8_t,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, int64_t,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, plat::float16,
|
|
|
|
|
ops::ReshapeDoubleGradKernel, bool,
|
|
|
|
|