From fbc8f469bdc3e5326d63d50cbd5f482882b050e3 Mon Sep 17 00:00:00 2001 From: qiuzhongya Date: Tue, 21 Feb 2023 16:17:16 +0800 Subject: [PATCH] matrix --- mindspore/ccsrc/transform/graph_ir/op_adapter_map.h | 4 ++-- .../graph_ir/op_declare/matrix_calculation_ops_declare.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mindspore/ccsrc/transform/graph_ir/op_adapter_map.h b/mindspore/ccsrc/transform/graph_ir/op_adapter_map.h index cab67ce6b86..9543f96056d 100644 --- a/mindspore/ccsrc/transform/graph_ir/op_adapter_map.h +++ b/mindspore/ccsrc/transform/graph_ir/op_adapter_map.h @@ -181,8 +181,8 @@ constexpr const char kNameLRNGrad[] = "LRNGrad"; constexpr const char kNameLSTMInputGrad[] = "LSTMInputGrad"; constexpr const char kNameMatMul[] = "MatMul"; constexpr const char kNameMatrixDiag[] = "MatrixDiag"; -constexpr const char kNameMatrixDiagPartD[] = "MatrixDiagPart"; -constexpr const char kNameMatrixSetDiagD[] = "MatrixSetDiag"; +constexpr const char kNameMatrixDiagPartD[] = "MatrixDiagPartD"; +constexpr const char kNameMatrixSetDiagD[] = "MatrixSetDiagD"; constexpr const char kNameMaxPool3DGradGrad[] = "MaxPool3DGradGrad"; constexpr const char kNameMaxPoolGradGrad[] = "MaxPoolGradGrad"; constexpr const char kNameMaxPoolGradGradWithArgmax[] = "MaxPoolGradGradWithArgmax"; diff --git a/mindspore/ccsrc/transform/graph_ir/op_declare/matrix_calculation_ops_declare.cc b/mindspore/ccsrc/transform/graph_ir/op_declare/matrix_calculation_ops_declare.cc index 00ed8c7a400..5bf2130b194 100644 --- a/mindspore/ccsrc/transform/graph_ir/op_declare/matrix_calculation_ops_declare.cc +++ b/mindspore/ccsrc/transform/graph_ir/op_declare/matrix_calculation_ops_declare.cc @@ -122,13 +122,13 @@ REG_ADPT_DESC(MatrixSetDiagD, kNameMatrixSetDiagD, ADPT_DESC(MatrixSetDiagD)) INPUT_MAP(MatrixDiagPart) = {{1, INPUT_DESC(x)}}; ATTR_MAP(MatrixDiagPart) = EMPTY_ATTR_MAP; OUTPUT_MAP(MatrixDiagPart) = {{0, OUTPUT_DESC(y)}}; -REG_ADPT_DESC(MatrixDiagPart, kMatrixDiagPartDOpName, ADPT_DESC(MatrixDiagPart)) +REG_ADPT_DESC(MatrixDiagPart, kMatrixDiagPartOpName, ADPT_DESC(MatrixDiagPart)) // MatrixSetDiag INPUT_MAP(MatrixSetDiag) = {{1, INPUT_DESC(x)}}; ATTR_MAP(MatrixSetDiag) = EMPTY_ATTR_MAP; OUTPUT_MAP(MatrixSetDiag) = {{0, OUTPUT_DESC(y)}}; -REG_ADPT_DESC(MatrixSetDiag, kMatrixSetDiagDOpName, ADPT_DESC(MatrixSetDiag)) +REG_ADPT_DESC(MatrixSetDiag, kMatrixSetDiagOpName, ADPT_DESC(MatrixSetDiag)) // ConfusionMatrix INPUT_MAP(ConfusionMatrix) = {{1, INPUT_DESC(labels)}, {2, INPUT_DESC(predictions)}, {3, INPUT_DESC(weights)}};