Skip to content

Commit 4785c00

Browse files
committed
Add support in cast op kernel
1 parent 9f81f1c commit 4785c00

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

paddle/fluid/operators/cast_op.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,5 @@ REGISTER_OP_CPU_KERNEL(cast, ops::CastOpKernel<CPU, float>,
8989
ops::CastOpKernel<CPU, int>,
9090
ops::CastOpKernel<CPU, int64_t>,
9191
ops::CastOpKernel<CPU, bool>,
92+
ops::CastOpKernel<CPU, uint8_t>,
9293
ops::CastOpKernel<CPU, paddle::platform::float16>);

paddle/fluid/operators/cast_op.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ using CastOpKernel =
2121

2222
REGISTER_OP_CUDA_KERNEL(cast, CastOpKernel<float>, CastOpKernel<double>,
2323
CastOpKernel<int>, CastOpKernel<int64_t>,
24-
CastOpKernel<bool>,
24+
CastOpKernel<bool>, CastOpKernel<uint8_t>,
2525
CastOpKernel<paddle::platform::float16>);

0 commit comments

Comments
 (0)