Description of a Tensor layout in memory. More...
#include <TTL_tensors_common.h>
Data Fields | |
TTL_dim_t | row_spacing |
The distance between the start of consequtive rows in units of elements. | |
TTL_dim_t | plane_spacing |
The distance between the start of consequtive planes in units of elements. | |
Description of a Tensor layout in memory.
Each logical tensor is embedded in both global and local memories within some enclosing physical tensors.
This embedding is referred to as 'layout', which specifies the actual distance in elements between the start of consecutive data elements in each dimension.
For the first axis the distance is always 1 element and and so this value is not stored.
line_length and plane_area in memory, in units of an element.
Definition at line 50 of file TTL_tensors_common.h.
TTL_dim_t TTL_layout_t::plane_spacing |
The distance between the start of consequtive planes in units of elements.
Definition at line 52 of file TTL_tensors_common.h.
TTL_dim_t TTL_layout_t::row_spacing |
The distance between the start of consequtive rows in units of elements.
Definition at line 51 of file TTL_tensors_common.h.