From 6089b50c4b01f507e0fe7200a68a1972fd1505c0 Mon Sep 17 00:00:00 2001 From: wanghaoshuang Date: Fri, 19 Jan 2018 11:24:04 +0800 Subject: [PATCH] Registry int64_t kernels --- paddle/operators/ctc_align_op.cc | 3 ++- paddle/operators/ctc_align_op.cu | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/paddle/operators/ctc_align_op.cc b/paddle/operators/ctc_align_op.cc index 3fa8d2af742..eeecbd32127 100644 --- a/paddle/operators/ctc_align_op.cc +++ b/paddle/operators/ctc_align_op.cc @@ -89,4 +89,5 @@ namespace ops = paddle::operators; REGISTER_OPERATOR(ctc_align, ops::CTCAlignOp, ops::CTCAlignOpMaker, paddle::framework::EmptyGradOpMaker); REGISTER_OP_CPU_KERNEL( - ctc_align, ops::CTCAlignKernel); + ctc_align, ops::CTCAlignKernel, + ops::CTCAlignKernel); diff --git a/paddle/operators/ctc_align_op.cu b/paddle/operators/ctc_align_op.cu index 99e716e989f..45635f16745 100644 --- a/paddle/operators/ctc_align_op.cu +++ b/paddle/operators/ctc_align_op.cu @@ -87,5 +87,5 @@ class CTCAlignOpCUDAKernel : public framework::OpKernel { } // namespace operators } // namespace paddle -REGISTER_OP_CUDA_KERNEL(ctc_align, - paddle::operators::CTCAlignOpCUDAKernel); +REGISTER_OP_CUDA_KERNEL(ctc_align, paddle::operators::CTCAlignOpCUDAKernel, + paddle::operators::CTCAlignOpCUDAKernel); -- GitLab