Browse Source

fix misra

pull/539/head
zhao-lupeng 4 years ago
parent
commit
06c0102312
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      parser/common/parser_fp16_t.h
  2. +2
    -2
      parser/common/register_tbe.cc
  3. +1
    -1
      parser/onnx/subgraph_adapter/if_subgraph_adapter.cc

+ 1
- 1
parser/common/parser_fp16_t.h View File

@@ -305,7 +305,7 @@ public:

/// @ingroup fp16_t constructor
/// @brief Constructor with an uint16_t value
TagFp16(const uint16_t &ui_val) : val(ui_val) {}
explicit TagFp16(const uint16_t &ui_val) : val(ui_val) {}

/// @ingroup fp16_t constructor
/// @brief Constructor with a fp16_t object(copy constructor)


+ 2
- 2
parser/common/register_tbe.cc View File

@@ -97,7 +97,7 @@ bool OpRegistrationTbe::RegisterParser(const OpRegistrationData &reg_data) {
return false;
}
OpParserRegisterar registerar __attribute__((unused)) = OpParserRegisterar(
domi::TENSORFLOW, GetOmOptype(reg_data), [=]() -> std::shared_ptr<OpParser> { return tf_parser_adapter; });
domi::TENSORFLOW, GetOmOptype(reg_data), [tf_parser_adapter]() -> std::shared_ptr<OpParser> { return tf_parser_adapter; });
}
if (reg_data.GetFusionParseParamFn() != nullptr || reg_data.GetFusionParseParamByOpFn() != nullptr) {
bool is_registed = factory->OpParserIsRegistered(GetOmOptype(reg_data), true);
@@ -115,7 +115,7 @@ bool OpRegistrationTbe::RegisterParser(const OpRegistrationData &reg_data) {
}
OpParserRegisterar registerar __attribute__((unused)) = OpParserRegisterar(
domi::TENSORFLOW, GetOmOptype(reg_data),
[=]() -> std::shared_ptr<OpParser> { return tf_fusion_parser_adapter; }, true);
[tf_fusion_parser_adapter]() -> std::shared_ptr<OpParser> { return tf_fusion_parser_adapter; }, true);
}
} else {
std::shared_ptr<OpParserFactory> factory = OpParserFactory::Instance(reg_data.GetFrameworkType());


+ 1
- 1
parser/onnx/subgraph_adapter/if_subgraph_adapter.cc View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/

#include <unordered_set>
#include "if_subgraph_adapter.h"
#include <unordered_set>
#include "subgraph_adapter_factory.h"
#include "common/util.h"
#include "framework/common/debug/ge_log.h"


Loading…
Cancel
Save