From 412877e613a9e01ca1e10db747ae85b7e085c72e Mon Sep 17 00:00:00 2001 From: duanboqiang Date: Thu, 26 Aug 2021 11:14:05 +0800 Subject: [PATCH] fix cast op (#35156) --- paddle/fluid/operators/cast_op.cc | 1 + paddle/fluid/operators/cast_op.cu | 2 ++ 2 files changed, 3 insertions(+) diff --git a/paddle/fluid/operators/cast_op.cc b/paddle/fluid/operators/cast_op.cc index 952e9ca329f..5fc97924ef2 100644 --- a/paddle/fluid/operators/cast_op.cc +++ b/paddle/fluid/operators/cast_op.cc @@ -119,6 +119,7 @@ REGISTER_OPERATOR(cast, ops::CastOp, REGISTER_OP_CPU_KERNEL( cast, ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, + ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, diff --git a/paddle/fluid/operators/cast_op.cu b/paddle/fluid/operators/cast_op.cu index 0beb2291060..8b2998e52a1 100644 --- a/paddle/fluid/operators/cast_op.cu +++ b/paddle/fluid/operators/cast_op.cu @@ -102,6 +102,7 @@ REGISTER_OP_CUDA_KERNEL( ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, + ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, + ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel, ops::CastOpKernel