Skip to content

Commit

Permalink
Use next instead of get_batch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaemin Choi committed Mar 12, 2024
1 parent 55214c8 commit 0021bb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ def get_forward_output_and_loss_func(self, validation_step=False, tuning=False):
def fwd_output_and_loss_func(dataloader_iter, model, checkpoint_activations_all_layers=None):

# Get data batch
batch = self.get_batch(dataloader_iter, tuning)
batch = next(dataloader_iter)

# Transfer needed data to GPU
required_keys = set()
Expand Down

0 comments on commit 0021bb4

Please sign in to comment.