From 609c0222224427303dfe27a47c29509369489eed Mon Sep 17 00:00:00 2001 From: Wilber Date: Fri, 8 Jan 2021 14:26:24 +0800 Subject: [PATCH] shape op support int8 and uint8 tensor (#30201) --- paddle/fluid/operators/shape_op.cc | 1 + paddle/fluid/operators/shape_op.cu | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/operators/shape_op.cc b/paddle/fluid/operators/shape_op.cc index 0ecf9bfb5d..d8ec12659f 100644 --- a/paddle/fluid/operators/shape_op.cc +++ b/paddle/fluid/operators/shape_op.cc @@ -69,5 +69,6 @@ REGISTER_OPERATOR( paddle::framework::EmptyGradOpMaker, paddle::framework::EmptyGradOpMaker); REGISTER_OP_CPU_KERNEL(shape, ops::ShapeKernel, ops::ShapeKernel, + ops::ShapeKernel, ops::ShapeKernel, ops::ShapeKernel, ops::ShapeKernel, ops::ShapeKernel); diff --git a/paddle/fluid/operators/shape_op.cu b/paddle/fluid/operators/shape_op.cu index 5d50b17818..fce723c784 100644 --- a/paddle/fluid/operators/shape_op.cu +++ b/paddle/fluid/operators/shape_op.cu @@ -16,7 +16,8 @@ limitations under the License. */ REGISTER_OP_CUDA_KERNEL( shape, paddle::operators::ShapeKernel, - paddle::operators::ShapeKernel, + paddle::operators::ShapeKernel, paddle::operators::ShapeKernel, + paddle::operators::ShapeKernel, paddle::operators::ShapeKernel, paddle::operators::ShapeKernel, paddle::operators::ShapeKernel, -- GitLab