Publishing 2019 R2 content (#223)
[platform/upstream/dldt.git] / inference-engine / thirdparty / clDNN / api / C / region_yolo.h
1 /*
2 // Copyright (c) 2018 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
17 ///////////////////////////////////////////////////////////////////////////////////////////////////
18 #pragma once
19 #include "cldnn.h"
20 /// @addtogroup c_api C API
21 /// @{
22 /// @addtogroup c_topology Network Topology
23 /// @{
24 /// @addtogroup c_primitives Primitives
25 /// @{
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 /// @brief region softmax specific for yolo2 topology
32 /// @details
33 /// @par Algorithm:
34 ///
35 /// @par Where:
36 ///
37 CLDNN_BEGIN_PRIMITIVE_DESC(region_yolo)
38 /// @brief paramter coords
39 uint32_t coords;
40 /// @brief paramter classes
41 uint32_t classes;
42 /// @brief Number of anchors
43 uint32_t num;
44 /// @brief Apply softmax after logistic
45 uint32_t do_softmax;
46 /// @brief Number of really used anchors
47 uint32_t mask_size;
48 CLDNN_END_PRIMITIVE_DESC(region_yolo)
49
50 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(region_yolo);
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 /// @}
57 /// @}
58 /// @}
59