clDNN
prior_box.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 PRIOR_BOX_H
19 #define PRIOR_BOX_H
20 
21 #include "cldnn.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
38 cldnn_tensor img_size;
47 uint32_t flip;
49 uint32_t clip;
53 float step_width;
57 float offset;
58 CLDNN_END_PRIMITIVE_DESC(prior_box)
59 
60 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(prior_box);
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
69 #endif /* PRIOR_BOX_H */
70 
#define CLDNN_BEGIN_PRIMITIVE_DESC(PType)
Begin primitive description definition.
Definition: cldnn.h:398
cldnn_float_arr variance
Variance for adjusting the prior boxes.
Definition: prior_box.h:51
cldnn_float_arr min_sizes
Minimum box sizes in pixels.
Definition: prior_box.h:41
Represents reference to an array of floats.
Definition: cldnn.h:308
uint32_t flip
If not 0, will flip each aspect ratio. For example, if there is aspect ratio "r", aspect ratio "1...
Definition: prior_box.h:47
float step_height
Step height.
Definition: prior_box.h:55
cldnn_float_arr aspect_ratios
Various of aspect ratios. Duplicate ratios will be ignored.
Definition: prior_box.h:45
float step_width
Step width.
Definition: prior_box.h:53
cldnn_float_arr max_sizes
Maximum box sizes in pixels.
Definition: prior_box.h:43
uint32_t clip
If not 0, will clip the prior so that it is within [0, 1].
Definition: prior_box.h:49
#define CLDNN_END_PRIMITIVE_DESC(PType)
Close primitive descriptor definition.
Definition: cldnn.h:409
N-dimensional vector. Mostly used to represent memory size.
Definition: cldnn.h:266
float offset
Offset to the top left corner of each cell.
Definition: prior_box.h:57