Skip to content

Commit

Permalink
minor hint loops bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinGeens committed Jul 25, 2024
1 parent 7af7303 commit 8dab621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream/classes/stages/GenerateCNWorkloadHybridStage.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def get_outer_tmap_loop_dimensions(self, layer: ComputationNode) -> List[Tempora
# layer ids 0 to 3 will use [("OY", "all")] and layer id 4 will use [("OY", "all), ("K", "all")]
# Find which sublist this layer should use
try:
outer_cn_loops = next(v for k, v in self.hint_loops.items() if layer.id in k)
outer_cn_loops = next(v for k, v in self.hint_loops if layer.id in k)
except StopIteration:
raise ValueError(f"Layer id {layer.id} not in hint_loops: {self.hint_loops}")
outer_loops = convert_outer_cn_loops(outer_cn_loops, layer)
Expand Down

0 comments on commit 8dab621

Please sign in to comment.