已合并
fix: 修复告警代码 #4798
hemahema创建于 2 天前
fix: 修复告警代码 #4798
已合并
共 1 个文件变更+7-3
| @@ -7444,7 +7444,7 @@ struct ExtendConv2DIrAttrDefBase : public Conv2D::AscConv2DIrAttrDef { | |||
| 7444 | GE_WARN_ASSERT(attr_value != nullptr); | 7444 | GE_WARN_ASSERT(attr_value != nullptr); |
| 7445 | return attr_value->GetValue(round_mode); | 7445 | return attr_value->GetValue(round_mode); |
| 7446 | } | 7446 | } |
| 7447 | - graphStatus SetRound_mode(std::string round_mode) { | 7447 | + graphStatus SetRound_mode(const std::string &round_mode) { |
| 7448 | auto attr_value = attr_store_.GetOrCreateAnyValue("round_mode"); | 7448 | auto attr_value = attr_store_.GetOrCreateAnyValue("round_mode"); |
| 7449 | GE_ASSERT_NOTNULL(attr_value); | 7449 | GE_ASSERT_NOTNULL(attr_value); |
| 7450 | return attr_value->SetValue(round_mode); | 7450 | return attr_value->SetValue(round_mode); |
| @@ -7459,7 +7459,7 @@ struct ExtendConv2DIrAttrDefBase : public Conv2D::AscConv2DIrAttrDef { | |||
| 7459 | GE_WARN_ASSERT(attr_value != nullptr); | 7459 | GE_WARN_ASSERT(attr_value != nullptr); |
| 7460 | return attr_value->GetValue(enable_relu0); | 7460 | return attr_value->GetValue(enable_relu0); |
| 7461 | } | 7461 | } |
| 7462 | - graphStatus SetEnable_relu0(bool enable_relu0) { | 7462 | + graphStatus SetEnable_relu0(const bool enable_relu0) { |
| 7463 | auto attr_value = attr_store_.GetOrCreateAnyValue("enable_relu0"); | 7463 | auto attr_value = attr_store_.GetOrCreateAnyValue("enable_relu0"); |
| 7464 | GE_ASSERT_NOTNULL(attr_value); | 7464 | GE_ASSERT_NOTNULL(attr_value); |
| 7465 | return attr_value->SetValue(enable_relu0); | 7465 | return attr_value->SetValue(enable_relu0); |
| @@ -7469,7 +7469,7 @@ struct ExtendConv2DIrAttrDefBase : public Conv2D::AscConv2DIrAttrDef { | |||
| 7469 | GE_WARN_ASSERT(attr_value != nullptr); | 7469 | GE_WARN_ASSERT(attr_value != nullptr); |
| 7470 | return attr_value->GetValue(nullptr_inputs_index); | 7470 | return attr_value->GetValue(nullptr_inputs_index); |
| 7471 | } | 7471 | } |
| 7472 | - graphStatus SetNullptr_inputs_index(std::vector<int64_t> nullptr_inputs_index) { | 7472 | + graphStatus SetNullptr_inputs_index(const std::vector<int64_t> &nullptr_inputs_index) { |
| 7473 | auto attr_value = attr_store_.GetOrCreateAnyValue("nullptr_inputs_index"); | 7473 | auto attr_value = attr_store_.GetOrCreateAnyValue("nullptr_inputs_index"); |
| 7474 | GE_ASSERT_NOTNULL(attr_value); | 7474 | GE_ASSERT_NOTNULL(attr_value); |
| 7475 | return attr_value->SetValue(nullptr_inputs_index); | 7475 | return attr_value->SetValue(nullptr_inputs_index); |
| @@ -7541,6 +7541,7 @@ struct ExtendConv2D : public Operator { | |||
| 7541 | }; | 7541 | }; |
| 7542 | 7542 | ||
| 7543 | inline ExtendConv2D &operator=(const ExtendConv2D &) = delete; | 7543 | inline ExtendConv2D &operator=(const ExtendConv2D &) = delete; |
| 7544 | + inline ExtendConv2D &operator=(ExtendConv2D &&) = delete; | ||
| 7544 | inline ExtendConv2D(ExtendConv2D &&) = delete; | 7545 | inline ExtendConv2D(ExtendConv2D &&) = delete; |
| 7545 | inline ExtendConv2D(const ExtendConv2D &other) | 7546 | inline ExtendConv2D(const ExtendConv2D &other) |
| 7546 | : af::Operator(other), | 7547 | : af::Operator(other), |
| @@ -7638,6 +7639,7 @@ struct ExtendConv2DBias : public Operator { | |||
| 7638 | }; | 7639 | }; |
| 7639 | 7640 | ||
| 7640 | inline ExtendConv2DBias &operator=(const ExtendConv2DBias &) = delete; | 7641 | inline ExtendConv2DBias &operator=(const ExtendConv2DBias &) = delete; |
| 7642 | + inline ExtendConv2DBias &operator=(ExtendConv2DBias &&) = delete; | ||
| 7641 | inline ExtendConv2DBias(ExtendConv2DBias &&) = delete; | 7643 | inline ExtendConv2DBias(ExtendConv2DBias &&) = delete; |
| 7642 | inline ExtendConv2DBias(const ExtendConv2DBias &other) | 7644 | inline ExtendConv2DBias(const ExtendConv2DBias &other) |
| 7643 | : af::Operator(other), | 7645 | : af::Operator(other), |
| @@ -7736,6 +7738,7 @@ struct ExtendConv2DScale : public Operator { | |||
| 7736 | }; | 7738 | }; |
| 7737 | 7739 | ||
| 7738 | inline ExtendConv2DScale &operator=(const ExtendConv2DScale &) = delete; | 7740 | inline ExtendConv2DScale &operator=(const ExtendConv2DScale &) = delete; |
| 7741 | + inline ExtendConv2DScale &operator=(ExtendConv2DScale &&) = delete; | ||
| 7739 | inline ExtendConv2DScale(ExtendConv2DScale &&) = delete; | 7742 | inline ExtendConv2DScale(ExtendConv2DScale &&) = delete; |
| 7740 | inline ExtendConv2DScale(const ExtendConv2DScale &other) | 7743 | inline ExtendConv2DScale(const ExtendConv2DScale &other) |
| 7741 | : af::Operator(other), | 7744 | : af::Operator(other), |
| @@ -7849,6 +7852,7 @@ struct ExtendConv2DBiasScale : public Operator { | |||
| 7849 | }; | 7852 | }; |
| 7850 | 7853 | ||
| 7851 | inline ExtendConv2DBiasScale &operator=(const ExtendConv2DBiasScale &) = delete; | 7854 | inline ExtendConv2DBiasScale &operator=(const ExtendConv2DBiasScale &) = delete; |
| 7855 | + inline ExtendConv2DBiasScale &operator=(ExtendConv2DBiasScale &&) = delete; | ||
| 7852 | inline ExtendConv2DBiasScale(ExtendConv2DBiasScale &&) = delete; | 7856 | inline ExtendConv2DBiasScale(ExtendConv2DBiasScale &&) = delete; |
| 7853 | inline ExtendConv2DBiasScale(const ExtendConv2DBiasScale &other) | 7857 | inline ExtendConv2DBiasScale(const ExtendConv2DBiasScale &other) |
| 7854 | : af::Operator(other), | 7858 | : af::Operator(other), |