19 #include "../C/pooling.h" 20 #include "primitive.hpp" 46 CLDNN_DECLATE_PRIMITIVE(
pooling)
64 ,
mode(static_cast<pooling_mode>(
mode))
89 ,
mode(static_cast<pooling_mode>(
mode))
144 void update_dto(
dto&
dto)
const override uint32_t with_output_size
Indicates that the primitive has user-defined output size (non-zero value).
Average-pooling method - values.
pooling(const primitive_id &id, const primitive_id &input, pooling_mode mode, const tensor &size, const tensor &stride, const tensor &input_offset, tensor output_size, const padding &output_padding=padding())
Constructs pooling primitive (computes input paddings to match output size).
Average-pooling method without values which are outside of the input.
Represents data padding information.
pooling(const dto *dto)
Constructs a copy from C API cldnn_pooling_desc.
tensor input_offset
Defines a shift, relative to (0,0) position of the input buffer, where (0,0) point of the pooling win...
bool with_output_size
Indicates that the primitive has user-defined output size (non-zero value).
N-dimensional vector. Mostly used to represent memory size.
pooling_mode
Select method for the pooling layer.
tensor size
Pooling kernel size.
cldnn_tensor input_offset
Defines a shift, relative to (0,0) position of the input buffer, where (0,0) point of the pooling win...
cldnn_tensor output_size
User-defined output data size of the primitive (w/o padding).
Performs "pooling" operation which is a form of non-linear down-sampling.
cldnn_tensor size
Pooling kernel size.
const primitive_id id
Primitive's id.
int32_t mode
Pooling method. See cldnn_pooling_mode.
Performs "pooling" operation which is a form of non-linear down-sampling.
static pooling create_with_output_size(const primitive_id &id, const primitive_id &input, tensor output_size, pooling_mode mode, const tensor &size, const tensor &stride, const tensor &input_offset={ 0, 0, 0, 0 }, const padding &output_padding=padding())
Constructs pooling primitive (computes input paddings to match output size).
pooling(const primitive_id &id, const primitive_id &input, pooling_mode mode, const tensor &size, const tensor &stride, const tensor &input_offset={ 0, 0, 0, 0 }, const padding &output_padding=padding())
Constructs pooling primitive.
std::string primitive_id
Unique id of a primitive within a topology.
tensor stride
Defines shift in input buffer between adjacent calculations of output values.
fixed_size_vector_ref input
List of ids of input primitives.
cldnn_tensor stride
Defines shift in input buffer between adjacent calculations of output values.
base class for all primitives implementations.
pooling_mode mode
Pooling mode.
padding output_padding
Requested output padding.
tensor output_size
User-defined output data size of the primitive (w/o padding).
Average-pooling method without values which are outside of the input.