Description of a Tensor layout in memory. More...
#include <TTL_tensors.h>
Public Member Functions | |
TTL_layout (const TTL_dim row_spacing=0, const TTL_dim plane_spacing=0) | |
Create a 3D Description of a Tensor layout in memory. | |
Data Fields | |
TTL_dim | row_spacing |
The distance between the start of consequtive rows in units of elements. | |
TTL_dim | 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 55 of file TTL_cpp/TTL_tensors.h.
Create a 3D Description of a Tensor layout in memory.
row_spacing; | The distance between the start of consequtive rows in units of elements. |
plane_spacing; | The distance between the start of consequtive planes in units of elements. |
Definition at line 65 of file TTL_cpp/TTL_tensors.h.
TTL_dim TTL_layout::plane_spacing |
The distance between the start of consequtive planes in units of elements.
Definition at line 69 of file TTL_cpp/TTL_tensors.h.
TTL_dim TTL_layout::row_spacing |
The distance between the start of consequtive rows in units of elements.
Definition at line 68 of file TTL_cpp/TTL_tensors.h.