Browse Source

cleancode

pull/648/head
songmingyang 3 years ago
parent
commit
8e725a2b69
3 changed files with 4 additions and 5 deletions
  1. +1
    -1
      parser/common/parser_utils.cc
  2. +2
    -2
      parser/common/parser_utils.h
  3. +1
    -2
      parser/common/pass.h

+ 1
- 1
parser/common/parser_utils.cc View File

@@ -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.


+ 2
- 2
parser/common/parser_utils.h View File

@@ -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.
@@ -41,7 +41,7 @@ class ParserUtils {
static Status HandleInputContext(const NodePtr &node,
const std::vector<NodePtr> &input_nodes,
const ComputeGraphPtr &compute_graph);
static Status HandleOutputContext(const NodePtr &node,
static Status HandleOutputContext(const NodePtr &node,
const std::vector<std::pair<NodePtr, int32_t>> &out_node_index,
OutputMapping &output_mapping);
};


+ 1
- 2
parser/common/pass.h View File

@@ -29,10 +29,9 @@ template <typename T>
class Pass {
public:
virtual ~Pass() {}
///
/// run pass
/// @author
///
virtual Status Run(std::shared_ptr<T>) = 0;
};
} // namespace ge


Loading…
Cancel
Save