bloqade.lanes.heuristics.logical.placement.LogicalPlacementStrategy
← Module overview
class
method
source
classLogicalPlacementStrategy¶source
bloqade.lanes.heuristics.logical.placement.LogicalPlacementStrategy
Bases: LogicalPlacementMethods, SingleZonePlacementStrategyABC
class LogicalPlacementStrategy(arch_spec: ArchSpec = get_arch_spec())Parameters
| Name | Type | Default | Description |
|---|---|---|---|
arch_spec | ArchSpec | get_arch_spec() |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
arch_spec | ArchSpec | field(default_factory=get_arch_spec) |
methodcompute_moves¶source
bloqade.lanes.heuristics.logical.placement.LogicalPlacementStrategy.compute_moves
Signature
def compute_moves(state_before: ConcreteState, state_after: ConcreteState) -> tuple[tuple[LaneAddress, ...], ...]Parameters
| Name | Type | Description |
|---|---|---|
state_before | ConcreteState | |
state_after | ConcreteState |
Returns
tuple[tuple[LaneAddress, ...], ...]