From a00a617db55e2ba8d69d7eafbfcef1033720d010 Mon Sep 17 00:00:00 2001 From: songmingyang Date: Sat, 27 Aug 2022 15:48:11 +0800 Subject: [PATCH] cleancode --- parser/common/register_tbe.cc | 4 ++-- parser/common/register_tbe.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parser/common/register_tbe.cc b/parser/common/register_tbe.cc index 421c9cb..9ccb6b0 100644 --- a/parser/common/register_tbe.cc +++ b/parser/common/register_tbe.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. @@ -42,7 +42,7 @@ FMK_FUNC_HOST_VISIBILITY OpRegistrationTbe *OpRegistrationTbe::Instance() { return &instance; } -bool OpRegistrationTbe::Finalize(const OpRegistrationData ®_data, bool is_train) { +bool OpRegistrationTbe::Finalize(const OpRegistrationData ®_data, bool is_train) onst { 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 5578054..670c221 100644 --- a/parser/common/register_tbe.h +++ b/parser/common/register_tbe.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. @@ -24,7 +24,7 @@ class OpRegistrationTbe { public: static OpRegistrationTbe *Instance(); - bool Finalize(const OpRegistrationData ®_data, bool is_train = false); + bool Finalize(const OpRegistrationData ®_data, bool is_train = false) const; private: bool RegisterParser(const OpRegistrationData ®_data) const;