From 8282958d21ff5430a43bd958722ba6b92394e60f Mon Sep 17 00:00:00 2001 From: songmingyang Date: Sat, 27 Aug 2022 16:07:33 +0800 Subject: [PATCH] cleancode --- parser/common/proto_file_parser.h | 2 +- parser/common/prototype_pass_manager.cc | 2 +- parser/common/prototype_pass_manager.h | 2 +- parser/common/register_tbe.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parser/common/proto_file_parser.h b/parser/common/proto_file_parser.h index 55f32a5..3441c89 100644 --- a/parser/common/proto_file_parser.h +++ b/parser/common/proto_file_parser.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/prototype_pass_manager.cc b/parser/common/prototype_pass_manager.cc index b54702c..57d2110 100644 --- a/parser/common/prototype_pass_manager.cc +++ b/parser/common/prototype_pass_manager.cc @@ -1,5 +1,5 @@ /** - * Copyright 2021 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/prototype_pass_manager.h b/parser/common/prototype_pass_manager.h index 028ffbe..97b4f74 100644 --- a/parser/common/prototype_pass_manager.h +++ b/parser/common/prototype_pass_manager.h @@ -1,5 +1,5 @@ /** - * Copyright 2021 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 9ccb6b0..83f9f44 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) onst { +bool OpRegistrationTbe::Finalize(const OpRegistrationData ®_data, bool is_train) const { static std::map *> op_map = {{domi::CAFFE, &caffe_op_map}}; if (is_train) { op_map[domi::TENSORFLOW] = &tensorflow_train_op_map;