clDNN
cldnn::data Struct Reference

Provides input data to topology. More...

#include <data.hpp>

Inheritance diagram for cldnn::data:
Collaboration diagram for cldnn::data:

Public Types

typedef cldnn_data_desc dto
 

Public Member Functions

 data (const primitive_id &id, const memory &mem)
 Constructs data primitive. More...
 
 data (const dto *dto)
 Constructs a copy from C API cldnn_data_desc.
 
- Public Member Functions inherited from cldnn::primitive_base< data, cldnn_data_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

memory mem
 memory object which contains data. More...
 
- 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.
 

Protected Member Functions

void update_dto (dto &dto) const override
 
- Protected Member Functions inherited from cldnn::primitive_base< data, cldnn_data_desc >
 primitive_base (const primitive_id &id, const std::vector< primitive_id > &input, const padding &output_padding=padding())
 
 primitive_base (const cldnn_data_desc *dto)
 
- Protected Member Functions inherited from cldnn::primitive
virtual std::vector< std::reference_wrapper< const primitive_id > > get_dependencies () const
 

Additional Inherited Members

- Protected Attributes inherited from cldnn::primitive
primitive_id_arr _input
 

Detailed Description

Provides input data to topology.

This primitive allows to pass data which is known at topology creation. For example, weights and biases for scoring networks.

Note
Passing data at topology may improve network performance if data optimization is enabled.

Definition at line 36 of file data.hpp.

Constructor & Destructor Documentation

◆ data()

cldnn::data::data ( const primitive_id id,
const memory mem 
)
inline

Constructs data primitive.

Parameters
idThis primitive id.
memmemory object which contains data.
Note
If memory is attached by memory::attach(), the attached buffer should be valid till network build.

Definition at line 44 of file data.hpp.

Member Data Documentation

◆ mem

memory cldnn::data::mem

memory object which contains data.

Note
If memory is attached by memory::attach(), the attached buffer should be valid till network build.

Definition at line 59 of file data.hpp.


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