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

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

#include <TTL_tensors_common.h>

Collaboration diagram for TTL_layout_t:

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.
 

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 50 of file TTL_tensors_common.h.

Field Documentation

◆ plane_spacing

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.

◆ row_spacing

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.


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