clDNN
Network Topology
Collaboration diagram for Network Topology:

Modules

 Primitives
 

Classes

struct  cldnn::primitive
 Base class of network primitive description. More...
 
class  cldnn::primitive_base< PType, DTO >
 base class for all primitives implementations. More...
 
struct  cldnn::topology
 Network topology to be defined by user. More...
 

Macros

#define CLDNN_DEFINE_TYPE_ID(PType)
 
#define CLDNN_DECLATE_PRIMITIVE(PType)
 

Typedefs

using cldnn::primitive_type_id = cldnn_primitive_type_id
 Globally unique primitive type id.
 
using cldnn::primitive_id_ref = cldnn_primitive_id
 C API compatible unique id of a primitive within a topology.
 
using cldnn::primitive_id = std::string
 Unique id of a primitive within a topology.
 

Functions

template<class PType >
PType::dto * cldnn::as_dto (cldnn_primitive_desc *dto)
 Dynamic cast to specified primitive description type.
 
template<class PType >
const PType::dto * cldnn::as_dto (const cldnn_primitive_desc *dto)
 Dynamic cast to specified primitive description type.
 

Detailed Description

Macro Definition Documentation

◆ CLDNN_DECLATE_PRIMITIVE

#define CLDNN_DECLATE_PRIMITIVE (   PType)
Value:
typedef CLDNN_PRIMITIVE_DESC(PType) dto;\
CLDNN_DEFINE_TYPE_ID(PType)

Definition at line 236 of file primitive.hpp.

◆ CLDNN_DEFINE_TYPE_ID

#define CLDNN_DEFINE_TYPE_ID (   PType)
Value:
static primitive_type_id type_id()\
{\
return check_status<primitive_type_id>( #PType " type id failed", [](status_t* status)\
{\
return cldnn_##PType##_type_id(status);\
});\
}
cldnn_primitive_type_id primitive_type_id
Globally unique primitive type id.
Definition: primitive.hpp:38

Definition at line 228 of file primitive.hpp.