Skip to content

Commit

Permalink
fixing formatting in dataloader
Browse files Browse the repository at this point in the history
  • Loading branch information
parthraut committed Feb 10, 2024
1 parent 43f898a commit f01110e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions zeus/run/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,17 +1011,17 @@ def __next__(self):
self.train_epoch_time.append(time_consumed)
# Record the energy consumption for each GPU.
for index in range(self.world_size):
self.train_epoch_energy[index][self.epoch_num - 1] = (
energy_consumed[index]
)
self.train_epoch_energy[index][
self.epoch_num - 1
] = energy_consumed[index]
else:
# Integrate the last time_consumed seconds.
self.eval_epoch_time.append(time_consumed)
# Record the energy consumption for each GPU.
for index in range(self.world_size):
self.eval_epoch_energy[index][self.epoch_num - 1] = (
energy_consumed[index]
)
self.eval_epoch_energy[index][
self.epoch_num - 1
] = energy_consumed[index]
# For the eval dataloader, we want to record the throughput and power
# for the current power limit. Since the train dataloader sets the power limit
# to the optimal power limit right after profiling is done, this will naturally
Expand Down

0 comments on commit f01110e

Please sign in to comment.