From b58e854d503330113f6a2dd9e049dd4d27f19701 Mon Sep 17 00:00:00 2001 From: songmingyang Date: Sat, 27 Aug 2022 16:34:08 +0800 Subject: [PATCH] cleancode --- parser/common/pre_checker.h | 2 +- parser/common/proto_file_parser.cc | 2 +- parser/common/register_tbe.cc | 2 +- parser/common/register_tbe.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parser/common/pre_checker.h b/parser/common/pre_checker.h index 12a0327..ad04c76 100644 --- a/parser/common/pre_checker.h +++ b/parser/common/pre_checker.h @@ -1,5 +1,5 @@ /** - * Copyright 2020 Huawei Technologies Co., Ltd + * Copyright (c) Huawei Technologies Co., Ltd. 2022. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/parser/common/proto_file_parser.cc b/parser/common/proto_file_parser.cc index 0bae5db..52ca523 100644 --- a/parser/common/proto_file_parser.cc +++ b/parser/common/proto_file_parser.cc @@ -1,5 +1,5 @@ /** - * Copyright 2020 Huawei Technologies Co., Ltd + * Copyright (c) Huawei Technologies Co., Ltd. 2022. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/parser/common/register_tbe.cc b/parser/common/register_tbe.cc index 83f9f44..061772c 100644 --- a/parser/common/register_tbe.cc +++ b/parser/common/register_tbe.cc @@ -42,7 +42,7 @@ FMK_FUNC_HOST_VISIBILITY OpRegistrationTbe *OpRegistrationTbe::Instance() { return &instance; } -bool OpRegistrationTbe::Finalize(const OpRegistrationData ®_data, bool is_train) const { +bool OpRegistrationTbe::Finalize(const OpRegistrationData ®_data, bool is_train) { static std::map *> op_map = {{domi::CAFFE, &caffe_op_map}}; if (is_train) { op_map[domi::TENSORFLOW] = &tensorflow_train_op_map; diff --git a/parser/common/register_tbe.h b/parser/common/register_tbe.h index 670c221..62e6acf 100644 --- a/parser/common/register_tbe.h +++ b/parser/common/register_tbe.h @@ -24,7 +24,7 @@ class OpRegistrationTbe { public: static OpRegistrationTbe *Instance(); - bool Finalize(const OpRegistrationData ®_data, bool is_train = false) const; + bool Finalize(const OpRegistrationData ®_data, bool is_train = false); private: bool RegisterParser(const OpRegistrationData ®_data) const;