Skip to content

Commit 6089b50

Browse files
committed
Registry int64_t kernels
1 parent e469545 commit 6089b50

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

paddle/operators/ctc_align_op.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,5 @@ namespace ops = paddle::operators;
8989
REGISTER_OPERATOR(ctc_align, ops::CTCAlignOp, ops::CTCAlignOpMaker,
9090
paddle::framework::EmptyGradOpMaker);
9191
REGISTER_OP_CPU_KERNEL(
92-
ctc_align, ops::CTCAlignKernel<paddle::platform::CPUDeviceContext, int>);
92+
ctc_align, ops::CTCAlignKernel<paddle::platform::CPUDeviceContext, int>,
93+
ops::CTCAlignKernel<paddle::platform::CPUDeviceContext, int64_t>);

paddle/operators/ctc_align_op.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ class CTCAlignOpCUDAKernel : public framework::OpKernel<T> {
8787
} // namespace operators
8888
} // namespace paddle
8989

90-
REGISTER_OP_CUDA_KERNEL(ctc_align,
91-
paddle::operators::CTCAlignOpCUDAKernel<int>);
90+
REGISTER_OP_CUDA_KERNEL(ctc_align, paddle::operators::CTCAlignOpCUDAKernel<int>,
91+
paddle::operators::CTCAlignOpCUDAKernel<int64_t>);

0 commit comments

Comments
 (0)