Skip to content

Commit

Permalink
removed batch dict unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
JVGD committed Nov 1, 2021
1 parent 2eb9816 commit 6b3c14b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions experiment1/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ def forward(self, x):

def step(self, batch, batch_idx, *args, **kwargs) -> T.Tensor:
# Unpacking
samples = batch["sample"]
targets = batch["target"]
samples, targets = batch

# Forward
targets_pred = self(samples)
Expand Down

0 comments on commit 6b3c14b

Please sign in to comment.