Skip to content

Commit

Permalink
Fixed wrong check
Browse files Browse the repository at this point in the history
  • Loading branch information
st4rl3ss committed Jan 12, 2024
1 parent dd713f7 commit 589cd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurodamus/utils/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def distribute_cells(dry_run_stats, num_ranks):
# Update total memory and re-add to the heap
heapq.heappush(ranks, (total_memory, rank_id))

if rank_memory or rank_allocation is None:
if rank_memory is None or rank_allocation is None:
return {}, {}

return rank_allocation, rank_memory
Expand Down

0 comments on commit 589cd88

Please sign in to comment.