clDNN
|
Changes information about inputs's layout effectively creating new memory which share underlaying buffer but is interpreted in a different way (different shape). More...
#include <reshape.hpp>
Public Types | |
typedef cldnn_reshape_desc | dto |
Public Member Functions | |
reshape (const primitive_id &id, const primitive_id &input, const tensor &output_shape, const padding &output_padding=padding()) | |
Constructs reshape primitive. More... | |
reshape (const dto *dto) | |
Constructs a copy from basic C API cldnn_reshape_desc. | |
![]() | |
const cldnn_primitive_desc * | get_dto () const override |
Returns pointer to a C API primitive descriptor casted to cldnn_primitive_desc. | |
![]() | |
primitive (const primitive_type_id &type, const primitive_id &id, const std::vector< primitive_id > &input, const padding &output_padding=padding()) | |
primitive (const cldnn_primitive_desc *dto) | |
Constructs a copy from basic C API cldnn_primitive_desc. | |
std::vector< std::reference_wrapper< primitive_id > > | dependecies () |
Returns references to all primitive ids on which this primitive depends - inputs, weights, biases, etc. | |
std::vector< primitive_id > | dependecies () const |
Returns copy of all primitive ids on which this primitive depends - inputs, weights, biases, etc. | |
operator primitive_id () const | |
Implicit conversion to primiitive id. | |
Static Public Member Functions | |
static primitive_type_id | type_id () |
Public Attributes | |
tensor | output_shape |
Requested memory shape. | |
![]() | |
const primitive_type_id | type |
Primitive's type id. | |
const primitive_id | id |
Primitive's id. | |
fixed_size_vector_ref | input |
List of ids of input primitives. | |
padding | output_padding |
Requested output padding. | |
Protected Member Functions | |
void | update_dto (dto &dto) const override |
![]() | |
primitive_base (const primitive_id &id, const std::vector< primitive_id > &input, const padding &output_padding=padding()) | |
primitive_base (const cldnn_reshape_desc *dto) | |
![]() | |
virtual std::vector< std::reference_wrapper< const primitive_id > > | get_dependencies () const |
Additional Inherited Members | |
![]() | |
primitive_id_arr | _input |
Changes information about inputs's layout effectively creating new memory which share underlaying buffer but is interpreted in a different way (different shape).
Definition at line 35 of file reshape.hpp.
|
inline |
Constructs reshape primitive.
id | This primitive id. |
input | Input primitive id. |
output_shape | Requested memory shape (excluding padding). |
output_padding | Requested memory padding. |
Definition at line 44 of file reshape.hpp.