e42db72cfdd5440566554b46df7383dd8dd0227d
[platform/core/ml/nnfw.git] / runtime / onert / core / include / ir / InternalType.h
1 /*
2  * Copyright (c) 2019 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 #ifndef __ONERT_IR_INTERNAL_TYPE_H__
18 #define __ONERT_IR_INTERNAL_TYPE_H__
19
20 #include <cstdint>
21
22 namespace onert
23 {
24 namespace ir
25 {
26
27 enum class Activation
28 {
29   NONE = 0,
30   RELU = 1,
31   RELU1 = 2,
32   RELU6 = 3,
33   TANH = 4,
34   SIGMOID = 5
35 };
36
37 struct Stride
38 {
39   uint32_t vertical;
40   uint32_t horizontal;
41 };
42
43 } // namespace ir
44 } // namespace onert
45
46 #endif // __ONERT_IR_INTERNAL_TYPE_H__