|
static TTL_augmentation_t | TTL_create_augmentation (const TTL_augmented_dim_t left, const TTL_augmented_dim_t right, const TTL_augmented_dim_t top, const TTL_augmented_dim_t bottom, const TTL_augmented_dim_t front, const TTL_augmented_dim_t back) |
| Create a 3D Description of a Tile augmentation.
|
|
static TTL_augmentation_t | TTL_create_augmentation (TTL_augmented_dim_t left, TTL_augmented_dim_t right, TTL_augmented_dim_t top, TTL_augmented_dim_t bottom) |
| Create a 2D Description of a Tile augmentation.
|
|
static TTL_augmentation_t | TTL_create_augmentation (TTL_augmented_dim_t left, TTL_augmented_dim_t right) |
| Create a 1D Description of a Tile augmentation.
|
|
static int | TTL_number_of_tiles (TTL_tiler_t tiler) |
| Return the number of tiles that this tile can produce.
|
|
static int | TTL_valid_tile_id (int tile_id, TTL_tiler_t tiler) |
| Given a tile ID return true or false to indicate if the id is valid.
|
|
static int | TTL_ceil_of_a_div_b (const int a, const int b) |
| Return the ceil value of a/b i.e. ceil(a/b)
|
|
static TTL_tiler_t | TTL_create_overlap_tiler (const TTL_shape_t tensor_shape, const TTL_shape_t tile_shape, const TTL_overlap_t overlap, const TTL_augmentation_t augmentation) |
| Return a TTL_tiler_t based on a shape, a tile, and an overlap.
|
|
static TTL_tiler_t | TTL_create_tiler (const TTL_shape_t shape, const TTL_shape_t tile) |
|
static TTL_dim_t | TTL_tiles_in_width (TTL_tiler_t t) |
|
static TTL_dim_t | TTL_tiles_in_height (TTL_tiler_t t) |
|
static TTL_dim_t | TTL_tiles_in_depth (TTL_tiler_t t) |
|
static int | TTL_tile_empty (TTL_tile_t tile) |
| Check if the tile passed is empty.
|
|
static TTL_tile_t | TTL_create_empty_tile () |
| Create an empty tile. Empty means it has all dimensions set to zero.
|
|
static TTL_tile_t | TTL_create_tile (TTL_dim_t x, TTL_dim_t y, TTL_dim_t z, TTL_tiler_t tiler) |
| Returns a tile at a position from a tiler and respective coordinates.
|
|
static TTL_tile_t | TTL_get_tile (const int tile_id, const TTL_tiler_t tiler) |
| Return the tile_id'th tile of a tile array in row-major order.
|
|
static TTL_tile_t | TTL_get_tile_column_major (const int tile_id, const TTL_tiler_t tiler) |
| Return the tile_id'th tile of a tile array in column-major order.
|
|
Augment an input tensor with logical padding.
When an input tensor is imported using a tiler the resulting tensors may have elements beyond the space of the original tensor. In terms of the origin tensor the subtensor may for example start at offset(-1, -1, -1) in this case the elements at (-1, -1, -1), (-1, 0, 0) etc. needed to be created from a process of augmentation.
Currently the only dynamic part of the augmentation is the size of the augmentation the augmented values are simply hardcode.
A TTL_augmented_dim_t is the number of elements to augment. A number of a "augmented" elements in the unit of elements
Definition at line 38 of file TTL_tiles.h.
Return the tile_id'th tile of a tile array in row-major order.
Return the tile_id'th tile, starting from tile_id=0, in row-major order. Returns an invalid tile if tile_id is not valid (not from [0, number_of_tiles))
- Parameters
-
tile_id | The tile id to return - if out of bounds then an invalid tile is returned |
tiler | The containing with the shape and tiling information |
- Returns
- The tile that is represented by tile_id when interpreted in row-major order.
Definition at line 319 of file TTL_tiles.h.
Return the tile_id'th tile of a tile array in column-major order.
Return the tile_id'th tile, starting from tile_id=0, in column-major order. Returns an invalid tile if tile_id is not valid (not from [0, number_of_tiles))
- Parameters
-
tile_id | The tile id to return - if out of bounds then an invalid tile is returned |
tiler | The tiler containing the shape and tiling information |
- Returns
- The tile that is represented by tile_id when interpreted in column-major order.
Definition at line 348 of file TTL_tiles.h.