Tensor Tiling Library
 
Loading...
Searching...
No Matches
TTL_layout Struct Reference

Description of a Tensor layout in memory. More...

#include <TTL_tensors.h>

Collaboration diagram for TTL_layout:

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TTL_layout()

TTL_layout::TTL_layout ( const TTL_dim row_spacing = 0,
const TTL_dim plane_spacing = 0 )
inline

Create a 3D Description of a Tensor layout in memory.

See also
TTL_layout for more information.
Parameters
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.

Field Documentation

◆ plane_spacing

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.

◆ row_spacing

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.


The documentation for this struct was generated from the following file: