clDNN
cldnn::input_layout Struct Reference

Provides input layout for a data to be passed later to network. More...

#include <input_layout.hpp>

Inheritance diagram for cldnn::input_layout:
Collaboration diagram for cldnn::input_layout:

Public Types

typedef cldnn_input_layout_desc dto
 

Public Member Functions

 input_layout (const primitive_id &id, const layout &layout)
 Constructs input layout primitive. More...
 
 input_layout (const dto *dto)
 Constructs a copy from C API cldnn_input_layout_desc.
 
- Public Member Functions inherited from cldnn::primitive_base< input_layout, cldnn_input_layout_desc >
const cldnn_primitive_descget_dto () const override
 Returns pointer to a C API primitive descriptor casted to cldnn_primitive_desc.
 
- Public Member Functions inherited from cldnn::primitive
 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_iddependecies () 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

const cldnn::layout layout
 Defines layout for the data will be passed to network.
 
- Public Attributes inherited from cldnn::primitive
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.
 

Additional Inherited Members

- Protected Member Functions inherited from cldnn::primitive_base< input_layout, cldnn_input_layout_desc >
 primitive_base (const primitive_id &id, const std::vector< primitive_id > &input, const padding &output_padding=padding())
 
 primitive_base (const cldnn_input_layout_desc *dto)
 
- Protected Member Functions inherited from cldnn::primitive
virtual std::vector< std::reference_wrapper< const primitive_id > > get_dependencies () const
 
- Protected Attributes inherited from cldnn::primitive
primitive_id_arr _input
 

Detailed Description

Provides input layout for a data to be passed later to network.

This primitive allows to define the layout for input data which will be passed to network before execution. For example, network input images.

Note
User should call network::set_input_data() for every input_layout primitive before network execution.
output_padding property of input_layout is ignored - its output layout is always equal to input layout defined during object creation.
See also
network::set_input_data(), cldnn::data

Definition at line 39 of file input_layout.hpp.

Constructor & Destructor Documentation

◆ input_layout()

cldnn::input_layout::input_layout ( const primitive_id id,
const layout layout 
)
inline

Constructs input layout primitive.

Parameters
idThis primitive id.
layoutDefines layout for the data will be passed to network.

Definition at line 46 of file input_layout.hpp.


The documentation for this struct was generated from the following file: