Get Basic Element Size

This function returns size of tensor basic element in bytes. It returns 0 if conditions listed the following API are violated.

Kernel Interface

Prototype

uint32_t mli_hlp_count_elem_num (mli_tensor *in)

Parameters

Kernel Interface Parameters
Parameters Description
in [IN] Pointer to input tensor

Returns - Size of basic element in bytes

Conditions for Applying the Function

This function must point to the tensor of supported element type (see mli_element_type Enumeration).