未验证 提交 6f1d2483 编写于 作者: W WangZhen 提交者: GitHub

Fix matrix rank name error (#43584)

上级 993f13d3
...@@ -38,7 +38,7 @@ static DDim CheckAndGetOutputDim(const DDim& dim_x) { ...@@ -38,7 +38,7 @@ static DDim CheckAndGetOutputDim(const DDim& dim_x) {
} }
} // namespace detail } // namespace detail
class MatrixRankeOp : public framework::OperatorWithKernel { class MatrixRankOp : public framework::OperatorWithKernel {
public: public:
using framework::OperatorWithKernel::OperatorWithKernel; using framework::OperatorWithKernel::OperatorWithKernel;
...@@ -91,7 +91,7 @@ class MatrixRankeOp : public framework::OperatorWithKernel { ...@@ -91,7 +91,7 @@ class MatrixRankeOp : public framework::OperatorWithKernel {
} }
}; };
class MatrixRankeOpMaker : public framework::OpProtoAndCheckerMaker { class MatrixRankOpMaker : public framework::OpProtoAndCheckerMaker {
public: public:
void Make() override { void Make() override {
AddInput("X", "(Tensor), The input tensor of matrix_rank op."); AddInput("X", "(Tensor), The input tensor of matrix_rank op.");
...@@ -120,4 +120,4 @@ class MatrixRankeOpMaker : public framework::OpProtoAndCheckerMaker { ...@@ -120,4 +120,4 @@ class MatrixRankeOpMaker : public framework::OpProtoAndCheckerMaker {
namespace ops = paddle::operators; namespace ops = paddle::operators;
REGISTER_OPERATOR(matrix_rank, ops::MatrixRankeOp, ops::MatrixRankeOpMaker); REGISTER_OPERATOR(matrix_rank, ops::MatrixRankOp, ops::MatrixRankOpMaker);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册