108 return shape.empty();
180 return cache.number_of_tiles;
191 return ((tile_id >= 0) && (tile_id < (
int)
cache.number_of_tiles));
208 return b ? ((a + b - 1) / b) : 0;
212 return cache.tiles_in_width;
216 return cache.tiles_in_height;
220 return cache.tiles_in_depth;
275 const TTL_dim tid_in_plane = tile_id %
cache.tiles_in_plane;
299 const TTL_dim tid_in_plane = tile_id %
cache.tiles_in_plane;
unsigned char TTL_augmented_dim
Augment an input tensor with logical padding.
uint32_t TTL_dim
The type used to hold the size of an object along any dimension.
3D description of the augmented margins
TTL_augmented_dim right
Right hand augmentation in elements.
TTL_augmented_dim bottom
Bottom augmentation in elements.
TTL_augmented_dim back
Back augmentation in elements.
TTL_augmentation(const TTL_augmented_dim left=0, const TTL_augmented_dim right=0, const TTL_augmented_dim top=0, const TTL_augmented_dim bottom=0, const TTL_augmented_dim front=0, const TTL_augmented_dim back=0)
Create a 3D Description of a Tile augmentation.
TTL_augmented_dim front
Front augmentation in elements.
TTL_augmented_dim top
Top augmentation in elements.
TTL_augmented_dim left
Left hand augmentation in elements.
Description of the 3D offset of an object.
TTL_offset_dim z
Offset in dimension z.
TTL_offset_dim y
Offset in dimension y.
TTL_offset_dim x
Offset in dimension x.
Description of the overlap in 3D space of adjacent tiles.
TTL_dim height
Number of rows along dimension y.
TTL_dim depth
Number of planes along dimension z.
TTL_dim width
Number of elements along dimension x.
TTL_tile()
Create an empty tile. Empty means it has all dimensions set to zero.
bool empty() const
Check if the tile passed is empty.
TTL_tiler(const TTL_shape tensor_shape, const TTL_shape tile_shape, const TTL_overlap overlap, const TTL_augmentation augmentation)
Return a TTL_tiler based on a shape, a tile, and an overlap.
TTL_shape space
Represents the space to be tiled such as an image.
int TTL_ceil_of_a_div_b(const int a, const int b) const
Return the ceil value of a/b i.e. ceil(a/b)
TTL_overlap overlap
When zeroes represent no overlap.
int valid_tile_id(int tile_id) const
Given a tile ID return true or false to indicate if the id is valid.
TTL_dim tiles_in_depth() const
TTL_dim tiles_in_height() const
TTL_augmentation augmentation
The augmentation that the tile produces.
struct TTL_tiler::@153017064222336267371240241203244373062067161267 cache
Precomputed information to speed up later reuse.
TTL_tile create_tile(TTL_dim x, TTL_dim y, TTL_dim z) const
Returns a tile at a position from a tiler and respective coordinates.
TTL_tile get_tile(const int tile_id) const
Return the tile_id'th tile of a tile array in row-major order.
TTL_dim tiles_in_width() const
int number_of_tiles() const
Return the number of tiles that this tile can produce.
TTL_tiler(const TTL_shape shape, const TTL_shape tile)
TTL_tile get_tile_column_major(const int tile_id) const
Return the tile_id'th tile of a tile array in column-major order.