Skip to content

Commit

Permalink
Tensor liveness supported
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner-andrulis committed Oct 24, 2024
1 parent 66616e9 commit 105b721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytimeloop/fastfusion/pareto.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def free_to_loop_index(self, n: int) -> "Pareto":
self.data = free_to_loop_index(self.data, n)
self.data = makepareto(self.data)

def alloc(self, resource_name: str, size: int, nloops: int):
n = nameloop2col(resource_name, nloops)
def alloc(self, resource_name: str, size: int, above_loop_index: int):
n = nameloop2col(resource_name, above_loop_index)
if n in self.data:
self.data[n] += size
else:
Expand Down

0 comments on commit 105b721

Please sign in to comment.