Imported Upstream version 1.25.0
[platform/core/ml/nnfw.git] / runtime / onert / core / src / dumper / dot / OperationNode.h
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /**
18  * @file Operation.h
19  * @brief    This file contains Operation
20  * @ingroup  COM_AI_RUNTIME
21  *
22  */
23
24 #ifndef __ONERT_DUMPER_DOT_DOT_NODE_INFO_H__
25 #define __ONERT_DUMPER_DOT_DOT_NODE_INFO_H__
26
27 #include "Node.h"
28 #include "ir/IOperation.h"
29 #include "ir/Index.h"
30
31 namespace onert
32 {
33 namespace dumper
34 {
35 namespace dot
36 {
37
38 /**
39  * @brief Class that represents an Operation
40  *
41  */
42 class Operation : public Node
43 {
44 public:
45   static const std::string OPERATION_SHAPE;
46   static const std::string BG_COLOR_SCHEME;
47
48 public:
49   /**
50    * @brief Construct a new Operation Node object
51    *
52    * @param[in] index operation index
53    * @param[in] node operation object
54    */
55   Operation(const ir::OperationIndex &index, const ir::IOperation &node);
56 };
57
58 } // namespace dot
59 } // namespace dumper
60 } // namespace onert
61
62 #endif // __ONERT_DUMPER_DOT_DOT_NODE_INFO_H__