Skip to content

Commit

Permalink
fix: remove unused comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lausannel committed Sep 20, 2024
1 parent 91f2fee commit 4e7b994
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/plot_mem.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def get_live_range(file_content: str, tensors: dict) -> tuple[dict, set]:
if name not in tensors:
name = name[:-2]
if name not in tensors:
# raise ValueError(f"Tenosr name is not exist in value list. Tensor name: {name}.")
continue
if name in tensors:
tensors[name]['start'] = live_range_start
Expand Down Expand Up @@ -209,8 +208,7 @@ def plot_tensor_lifecycle(tensors: dict, allocations: dict):
max_time = max(max_time, end)
max_buffer_size = max(max_buffer_size, offset + size)
except:
# print(f"Error: {tensor_name} has invalid info: {tensor_info}")
pass
continue

allocations_group_by_size = get_allocation_group_by_size(allocations)
for index, allocation_info in sorted(allocations_group_by_size.items(),
Expand Down

0 comments on commit 4e7b994

Please sign in to comment.