From 6f1d24837f71457c4c37e871a67a23a81b0d9c57 Mon Sep 17 00:00:00 2001 From: WangZhen <23097963+0x45f@users.noreply.github.com> Date: Fri, 17 Jun 2022 14:39:27 +0800 Subject: [PATCH] Fix matrix rank name error (#43584) --- paddle/fluid/operators/matrix_rank_op.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/operators/matrix_rank_op.cc b/paddle/fluid/operators/matrix_rank_op.cc index fddfaa3526..cfef824728 100644 --- a/paddle/fluid/operators/matrix_rank_op.cc +++ b/paddle/fluid/operators/matrix_rank_op.cc @@ -38,7 +38,7 @@ static DDim CheckAndGetOutputDim(const DDim& dim_x) { } } // namespace detail -class MatrixRankeOp : public framework::OperatorWithKernel { +class MatrixRankOp : public framework::OperatorWithKernel { public: using framework::OperatorWithKernel::OperatorWithKernel; @@ -91,7 +91,7 @@ class MatrixRankeOp : public framework::OperatorWithKernel { } }; -class MatrixRankeOpMaker : public framework::OpProtoAndCheckerMaker { +class MatrixRankOpMaker : public framework::OpProtoAndCheckerMaker { public: void Make() override { AddInput("X", "(Tensor), The input tensor of matrix_rank op."); @@ -120,4 +120,4 @@ class MatrixRankeOpMaker : public framework::OpProtoAndCheckerMaker { namespace ops = paddle::operators; -REGISTER_OPERATOR(matrix_rank, ops::MatrixRankeOp, ops::MatrixRankeOpMaker); +REGISTER_OPERATOR(matrix_rank, ops::MatrixRankOp, ops::MatrixRankOpMaker); -- GitLab