Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / thirdparty / clDNN / api / C / gather.h
1 /*
2 // Copyright (c) 2019 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 #ifndef GATHER_H
19 #define GATHER_H
20
21 #include "cldnn.h"
22
23
24 /// @addtogroup c_api C API
25 /// @{
26 /// @addtogroup c_topology Network Topology
27 /// @{
28 /// @addtogroup c_primitives Primitives
29 /// @{
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 typedef enum
35 {
36     cldnn_gather_along_b = 0,
37     cldnn_gather_along_f = CLDNN_TENSOR_BATCH_DIM_MAX,
38     cldnn_gather_along_x = CLDNN_TENSOR_BATCH_DIM_MAX + CLDNN_TENSOR_FEATURE_DIM_MAX,
39     cldnn_gather_along_y = cldnn_gather_along_x + 1
40 } cldnn_gather_axis;
41
42 CLDNN_BEGIN_PRIMITIVE_DESC(gather)
43 /// @brief Gathering axis;
44 cldnn_gather_axis axis;
45 /// @brief Output shape
46 cldnn_tensor output_shape;
47 CLDNN_END_PRIMITIVE_DESC(gather)
48
49 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(gather);
50
51 #ifdef __cplusplus
52 }
53 #endif
54
55 /// @}
56 /// @}
57 /// @}
58 #endif // GATHER_H