19 #include "../C/reorder.h" 20 #include "primitive.hpp" 38 CLDNN_DECLATE_PRIMITIVE(
reorder)
48 const layout& output_layout,
49 const std::vector<float>& values_to_subtract = {}
67 const layout& output_layout,
88 const std::vector<float>& values_to_subtract = {},
140 std::vector<std::reference_wrapper<const primitive_id>> get_dependencies()
const override 147 void update_dto(dto& dto)
const override 151 dto.mean_subtract =
mean.c_str();
reorder(const primitive_id &id, const primitive_id &input, format output_format, data_types output_data_type, const std::vector< float > &values_to_subtract={}, const padding &output_padding=padding())
Constructs reorder primitive with directly provided mean subtract values.
reorder(const primitive_id &id, const primitive_id &input, const layout &output_layout, const std::vector< float > &values_to_subtract={})
Constructs reorder primitive with directly provided mean subtract values.
Changes how data is ordered in memory. Value type is not changed & all information is preserved...
Represents data padding information.
std::vector< float > subtract_per_feature
Array of mean subtract values.
cldnn_format_type
Represents memory formats (orders). In CNN most of data is describe as 4 dimensional blocks...
data_types output_data_type
Requested memory data type.
data_types data_type
Data type stored in memory (see. data_types)
reorder(const primitive_id &id, const primitive_id &input, const layout &output_layout, primitive_id const &mean)
Constructs reorder primitive which takes mean subtract values from another primitive.
Changes how data is ordered in memory. Value type is not changed & all information is preserved...
data_types
Possible data types could be stored in memory.
primitive_id mean
Primitive id to get mean subtract values. Ignored if subtract_per_featrue is set. ...
const primitive_id id
Primitive's id.
cldnn_data_type
Data type stored in memory.
format output_format
Requested memory format.
padding data_padding
Explicit padding of the memory.
cldnn::format format
Format stored in memory (see. format)
std::string primitive_id
Unique id of a primitive within a topology.
fixed_size_vector_ref input
List of ids of input primitives.
base class for all primitives implementations.
padding output_padding
Requested output padding.
reorder(const dto *dto)
Constructs a copy from basic C API cldnn_reorder_desc.
reorder(const primitive_id &id, const primitive_id &input, format output_format, data_types output_data_type, primitive_id const &mean, const padding &output_padding=padding())
Constructs reorder primitive which takes mean subtract values from another primitive.