|
clDNN
|
|
Modules | |
| Primitives | |
Classes | |
| struct | cldnn_float_arr |
| Represents reference to an array of floats. More... | |
| struct | cldnn_uint16_t_arr |
| Represents reference to an array of uint16_t. More... | |
| struct | cldnn_tensor_arr |
| Represents reference to an array of tensor. More... | |
| struct | cldnn_primitive_id_arr |
| Represents reference to an array of primitive ids. More... | |
| struct | cldnn_arg |
| Custom primitive kernel argument type. More... | |
| struct | cldnn_activation_additional_params |
| activation additional params More... | |
| struct | cldnn_primitive_desc |
| Basic primitive descriptor structure. More... | |
Macros | |
| #define | CLDNN_BEGIN_PRIMITIVE_DESC(PType) |
| Begin primitive description definition. More... | |
| #define | CLDNN_END_PRIMITIVE_DESC(PType) }; |
| Close primitive descriptor definition. | |
| #define | CLDNN_PRIMITIVE_DESC(PType) cldnn_##PType##_desc |
Typedefs | |
| typedef struct cldnn_topology_impl * | cldnn_topology |
| Network topology to be defined by user. | |
| typedef const struct cldnn_primitive_type * | cldnn_primitive_type_id |
| Globally unique primitive's type id. | |
| typedef const char * | cldnn_primitive_id |
Unique id of a primitive within a topology. | |
| typedef const char * | cldnn_kernel_code |
| Custom primitive kernel source code. | |
| typedef cldnn_kernel_code * | cldnn_kernels_code |
| Custom primitive kernel source code array. | |
| typedef const char * | cldnn_kernel_entry_point |
| Custom primitive kernel entry point. | |
| typedef const char * | cldnn_kernel_build_options |
| Custom primitive kernel build options. | |
| typedef const size_t * | cldnn_work_group_sizes |
| Custom primitive kernel workgroup sizes. | |
| typedef uint32_t | cldnn_arg_index |
| Custom primitive kernel argument index. | |
| typedef const cldnn_arg * | cldnn_kernel_arguments |
| Custom primitive kernel argument array. | |
Enumerations | |
| enum | cldnn_arg_type { arg_input, arg_output } |
| Custom primitive kernel argument type. | |
| enum | cldnn_activation_func { activation_none, activation_logistic, activation_hyperbolic_tan, activation_relu, activation_relu_negative_slope, activation_clamp, activation_softrelu, activation_abs, activation_linear, activation_square, activation_sqrt } |
| activation functions | |
Functions | |
| CLDNN_API cldnn_topology | cldnn_create_topology (cldnn_status *status) |
| Create empty network topology. | |
| CLDNN_API void | cldnn_add_primitive (cldnn_topology topology, const struct cldnn_primitive_desc *dto, cldnn_status *status) |
| Add new primitive to the topology. More... | |
| CLDNN_API void | cldnn_get_primitive_ids (cldnn_topology topology, char *ids, size_t size, size_t *size_ret, cldnn_status *status) |
| Return all primitives id from topology. More... | |
| CLDNN_API void | cldnn_retain_topology (cldnn_topology topology, cldnn_status *status) |
| Increment reference counter for the topology object. | |
| CLDNN_API void | cldnn_release_topology (cldnn_topology topology, cldnn_status *status) |
| Decrement reference counter for the topology object. Deletes object when counter becomes zero. | |
| struct cldnn_float_arr |
| struct cldnn_uint16_t_arr |
| struct cldnn_tensor_arr |

| Class Members | ||
|---|---|---|
| const cldnn_tensor * | data | Pointer to tensor array. |
| size_t | size | Size (in tensor) of the array. |
| struct cldnn_primitive_id_arr |
| Class Members | ||
|---|---|---|
| const cldnn_primitive_id * | data | Pointer to ids array. |
| size_t | size | Number of ids in the array. |
| struct cldnn_arg |
| Class Members | ||
|---|---|---|
| cldnn_arg_type | arg_type | |
| cldnn_arg_index | index | |
| struct cldnn_activation_additional_params |
| struct cldnn_primitive_desc |

| Class Members | ||
|---|---|---|
| cldnn_primitive_id | id | Primitive id unique within a topology. |
| cldnn_primitive_id_arr | input | Input primitives ids. |
| cldnn_padding | output_padding | Output padding information. |
| cldnn_primitive_type_id | type | Primitive type identificator. |
| #define CLDNN_BEGIN_PRIMITIVE_DESC | ( | PType | ) |
Begin primitive description definition.
Defines 'cldnn_primitive_type_desc' structure with first 5 fields common for all primitive descriptors. Other fields should be added after this macro. primitive descriptor definition should be closed by CLDNN_END_PRIMITIVE_DESC. Output padding information.
| CLDNN_API void cldnn_add_primitive | ( | cldnn_topology | topology, |
| const struct cldnn_primitive_desc * | dto, | ||
| cldnn_status * | status | ||
| ) |
Add new primitive to the topology.
| [in] | dto | The pointer to a structure defined by CLDNN_BEGIN_PRIMITIVE_DESC and CLDNN_END_PRIMITIVE_DESC |
| CLDNN_API void cldnn_get_primitive_ids | ( | cldnn_topology | topology, |
| char * | ids, | ||
| size_t | size, | ||
| size_t * | size_ret, | ||
| cldnn_status * | status | ||
| ) |
Return all primitives id from topology.
Function fills user provided buffer by primitive ids. Each id is followed by '\0'.
| [in] | ids | Pointer to user-allocated buffer to store names. |
| [in] | size | Size (in chars) of the buffer. |
| [out] | size_ret | Required size (in chars) to store result. |