clDNN
cldnn::primitive Struct Referenceabstract

Base class of network primitive description. More...

#include <primitive.hpp>

Inheritance diagram for cldnn::primitive:
Collaboration diagram for cldnn::primitive:

Classes

struct  fixed_size_vector_ref
 Initialize fields common for all primitives. More...
 
struct  primitive_id_arr
 

Public Member Functions

 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.
 
virtual const cldnn_primitive_descget_dto () const =0
 Requested output padding. More...
 
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.
 

Public Attributes

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

virtual std::vector< std::reference_wrapper< const primitive_id > > get_dependencies () const
 

Protected Attributes

primitive_id_arr _input
 

Detailed Description

Base class of network primitive description.

Definition at line 61 of file primitive.hpp.

Member Function Documentation

◆ get_dto()

virtual const cldnn_primitive_desc* cldnn::primitive::get_dto ( ) const
pure virtual

Requested output padding.

Requested output padding. Returns pointer to a C API primitive descriptor casted to cldnn_primitive_desc.

Implemented in cldnn::primitive_base< PType, DTO >, cldnn::primitive_base< permute, cldnn_permute_desc >, cldnn::primitive_base< custom_gpu_primitive, cldnn_custom_gpu_primitive_desc >, cldnn::primitive_base< deconvolution, cldnn_deconvolution_desc >, cldnn::primitive_base< convolution, cldnn_convolution_desc >, cldnn::primitive_base< concatenation, cldnn_concatenation_desc >, cldnn::primitive_base< reshape, cldnn_reshape_desc >, cldnn::primitive_base< normalize, cldnn_normalize_desc >, cldnn::primitive_base< activation, cldnn_activation_desc >, cldnn::primitive_base< reorder, cldnn_reorder_desc >, cldnn::primitive_base< eltwise, cldnn_eltwise_desc >, cldnn::primitive_base< detection_output, cldnn_detection_output_desc >, cldnn::primitive_base< roi_pooling, cldnn_roi_pooling_desc >, cldnn::primitive_base< pooling, cldnn_pooling_desc >, cldnn::primitive_base< scale, cldnn_scale_desc >, cldnn::primitive_base< reorg_yolo, cldnn_reorg_yolo_desc >, cldnn::primitive_base< softmax, cldnn_softmax_desc >, cldnn::primitive_base< split, cldnn_split_desc >, cldnn::primitive_base< prior_box, cldnn_prior_box_desc >, cldnn::primitive_base< lrn, cldnn_lrn_desc >, cldnn::primitive_base< region_yolo, cldnn_region_yolo_desc >, cldnn::primitive_base< input_layout, cldnn_input_layout_desc >, cldnn::primitive_base< proposal, cldnn_proposal_desc >, cldnn::primitive_base< batch_norm, cldnn_batch_norm_desc >, cldnn::primitive_base< crop, cldnn_crop_desc >, cldnn::primitive_base< upsampling, cldnn_upsampling_desc >, cldnn::primitive_base< data, cldnn_data_desc >, and cldnn::primitive_base< fully_connected, cldnn_fully_connected_desc >.


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