clDNN
detection_output.h
1 /*
2 // Copyright (c) 2016 Intel Corporation
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 
18 #ifndef DETECTION_OUTPUT_H
19 #define DETECTION_OUTPUT_H
20 
21 #include "cldnn.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
34 typedef enum /*:int32_t*/
35 {
36  cldnn_code_type_corner,
37  cldnn_code_type_center_size,
38  cldnn_code_type_corner_size,
40 
44 CLDNN_BEGIN_PRIMITIVE_DESC(detection_output)
46 uint32_t num_classes;
48 uint32_t keep_top_k;
50 uint32_t share_location;
52 int background_label_id;
54 float nms_threshold;
56 int top_k;
58 float eta;
60 int32_t code_type;
62 uint32_t variance_encoded_in_target;
64 float confidence_threshold;
65 CLDNN_END_PRIMITIVE_DESC(detection_output)
66 
67 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(detection_output);
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
76 #endif /* DETECTION_OUTPUT_H */
#define CLDNN_BEGIN_PRIMITIVE_DESC(PType)
Begin primitive description definition.
Definition: cldnn.h:398
cldnn_prior_box_code_type
Select method for coding the prior-boxes in Detection Output layer ( cldnn_detection_output_desc )...
#define CLDNN_END_PRIMITIVE_DESC(PType)
Close primitive descriptor definition.
Definition: cldnn.h:409