clDNN
pooling.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 POOLING_H
19 #define POOLING_H
20 
21 #include "cldnn.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
34 typedef enum /*:int32_t*/
35 {
43 
48 int32_t mode;
50 cldnn_tensor input_offset;
52 cldnn_tensor stride;
56 uint32_t with_output_size;
58 cldnn_tensor output_size;
60 
61 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(pooling);
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
70 #endif /* POOLING_H */
71 
#define CLDNN_BEGIN_PRIMITIVE_DESC(PType)
Begin primitive description definition.
Definition: cldnn.h:398
Average-pooling method without values which are outside of the input.
Definition: pooling.h:41
Maximum-pooling method.
Definition: pooling.h:37
cldnn_pooling_mode
Select method for Pooling layer ( cldnn_pooling_desc ).
Definition: pooling.h:34
Average-pooling method.
Definition: pooling.h:39
#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