Deeploy.TilingExtension.TilingCodegen.AbsoluteHyperRectangle
- class Deeploy.TilingExtension.TilingCodegen.AbsoluteHyperRectangle(rectangle: HyperRectangle, absoluteOffset: Tuple[int, ...])
Bases:
objectRepresents a HyperRectangle with an absolute offset in memory space.
This class combines a HyperRectangle with an absolute memory offset, providing both the logical tensor coordinates and the physical memory location. This is useful for tracking tiles that have been positioned in specific memory locations during tiling operations.
- Variables:
rectangle (HyperRectangle) – The hyperrectangle defining the logical tensor region.
absoluteOffset (Tuple[int, ...]) – The absolute offset in memory space where this rectangle is located.
- Parameters:
rectangle (HyperRectangle) – The hyperrectangle to associate with the absolute offset.
absoluteOffset (Tuple[int, ...]) – The absolute position in memory space.
- Raises:
AssertionError – If the absoluteOffset and rectangle.offset have mismatching dimensions.
Notes
The absoluteOffset must have the same dimensionality as the rectangle’s offset to ensure consistent coordinate mapping between logical and physical memory spaces.
Methods
- __init__(rectangle: HyperRectangle, absoluteOffset: Tuple[int, ...])
Initialize an AbsoluteHyperRectangle with rectangle and absolute offset.
- Parameters:
rectangle (HyperRectangle) – The hyperrectangle defining the logical tensor region.
absoluteOffset (Tuple[int, ...]) – The absolute position in memory space.
- Raises:
AssertionError – If absoluteOffset and rectangle.offset have mismatching dimensions.
__init__(rectangle, absoluteOffset)Initialize an AbsoluteHyperRectangle with rectangle and absolute offset.
Attributes
rectangleabsoluteOffset