IRON
1.0
|
Classes | |
class | __DeviceTile |
Public Member Functions | |
None | __init__ (self, int cols, int rows) |
int | rows (self) |
int | cols (self) |
list[Tile] | get_shim_tiles (self) |
list[Tile] | get_mem_tiles (self) |
list[Tile] | get_compute_tiles (self) |
None | resolve_tile (self, Tile tile, ir.Location|None loc=None, ir.InsertionPoint|None ip=None) |
Public Member Functions inherited from iron.resolvable.Resolvable | |
None | resolve (cls, ir.Location|None loc=None, ir.InsertionPoint|None ip=None) |
Private Attributes | |
_cols | |
_rows | |
A base class for representations of a device of a specific type. Note: this class is abstract because it does not implement Resolve
None iron.device.device.Device.__init__ | ( | self, | |
int | cols, | ||
int | rows | ||
) |
Initialize a representation of a device. Args: cols (int): Number of columns on the device rows (int): Number of rows on the device.
Reimplemented in iron.device.device.NPUBase.
int iron.device.device.Device.cols | ( | self | ) |
list[Tile] iron.device.device.Device.get_compute_tiles | ( | self | ) |
Returns a list of all compute tiles on the device. Returns: list[Tile]: A list of compute tiles.
Reimplemented in iron.device.device.NPUBase.
list[Tile] iron.device.device.Device.get_mem_tiles | ( | self | ) |
Returns a list of all mem tiles on the device. Returns: list[Tile]: A list of mem tiles.
Reimplemented in iron.device.device.NPUBase.
list[Tile] iron.device.device.Device.get_shim_tiles | ( | self | ) |
Returns a list of all shim tiles on the device. Returns: list[Tile]: A list of shim tiles.
Reimplemented in iron.device.device.NPUBase.
None iron.device.device.Device.resolve_tile | ( | self, | |
Tile | tile, | ||
ir.Location | None | loc = None , |
||
ir.InsertionPoint | None | ip = None |
||
) |
int iron.device.device.Device.rows | ( | self | ) |
|
private |
|
private |