TIOVX User Guide
|
Tensor object descriptor as placed in shared memory. More...
#include <tivx_obj_desc.h>
Data Fields | |
tivx_obj_desc_t | base |
base object descriptor | |
tivx_shared_mem_ptr_t | mem_ptr |
buffer address | |
volatile uint32_t | number_of_dimensions |
Number of dimensions in the tensor. | |
volatile uint32_t | data_type |
Data type of tensor. | |
volatile uint32_t | fixed_point_position |
Fixed point precision of the tensor. | |
volatile uint32_t | scaling_divisor |
each element of the tensor can be divided by this scaling value in order to obtain its real value | |
volatile uint32_t | scaling_divisor_fixed_point_position |
Fixed point precision of the scaling divisor. | |
volatile uint32_t | dimensions [TIVX_CONTEXT_MAX_TENSOR_DIMS] |
Size of all dimensions. | |
volatile uint32_t | stride [TIVX_CONTEXT_MAX_TENSOR_DIMS] |
Stride of all dimensions. More... | |
volatile uint32_t | mem_size |
Buffer size. | |
Tensor object descriptor as placed in shared memory.
Definition at line 855 of file tivx_obj_desc.h.
volatile uint32_t tivx_obj_desc_tensor_t::stride[TIVX_CONTEXT_MAX_TENSOR_DIMS] |
Stride of all dimensions.
stride[0] is more like bytes per element stride[1] is offset in bytes from one line to next stride[2] is offset in bytes from one frame/channel to next stride[3] is offset in bytes from one batch to next
How to calculate:
stride[0] = sizeof(data_type) for (i > 0) stride[i] = stride[i-1] * dimensions[i-1]
Definition at line 886 of file tivx_obj_desc.h.