Skip to content

Commit

Permalink
Merge branch 'master' into byol_encoder_opt
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jun 16, 2021
2 parents 6d6721f + b087892 commit 124fd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pl_bolts/models/regression/logistic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def training_step(self, batch, batch_idx):
# flatten any input
x = x.view(x.size(0), -1)

y_hat = self(x)
y_hat = self.linear(x)

# PyTorch cross_entropy function combines log_softmax and nll_loss in single function
loss = F.cross_entropy(y_hat, y, reduction='sum')
Expand Down

0 comments on commit 124fd1b

Please sign in to comment.