2 * Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __LUCI_IR_CIRCLE_NON_MAX_SUPPRESSION_V5_H__
18 #define __LUCI_IR_CIRCLE_NON_MAX_SUPPRESSION_V5_H__
20 #include "luci/IR/CircleNodeDecl.h"
21 #include "luci/IR/CircleOpcode.h"
23 #include "luci/IR/LuciNodeMixins.h"
29 * @brief NON_MAX_SUPPRESSION_V5 in Circle
31 class CircleNonMaxSuppressionV5 final
32 : public FixedArityNode<6, CircleNodeImpl<CircleOpcode::NON_MAX_SUPPRESSION_V5>>
35 loco::Node *boxes(void) const { return at(0)->node(); }
36 void boxes(loco::Node *node) { at(0)->node(node); }
38 loco::Node *scores(void) const { return at(1)->node(); }
39 void scores(loco::Node *node) { at(1)->node(node); }
41 loco::Node *max_output_size(void) const { return at(2)->node(); }
42 void max_output_size(loco::Node *node) { at(2)->node(node); }
44 loco::Node *iou_threshold(void) const { return at(3)->node(); }
45 void iou_threshold(loco::Node *node) { at(3)->node(node); }
47 loco::Node *score_threshold(void) const { return at(4)->node(); }
48 void score_threshold(loco::Node *node) { at(4)->node(node); }
50 loco::Node *soft_nms_sigma(void) const { return at(5)->node(); }
51 void soft_nms_sigma(loco::Node *node) { at(5)->node(node); }
56 #endif // __LUCI_IR_CIRCLE_NON_MAX_SUPPRESSION_V5_H__