Skip to content

Commit

Permalink
fix(tune): undef train_loss
Browse files Browse the repository at this point in the history
  • Loading branch information
jyaacoub committed Dec 6, 2023
1 parent e3205cb commit f8f80f6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/train_test/tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def simple_train(model: BaseModel, optimizer:torch.optim.Optimizer,

# Compute loss
loss = CRITERION(predictions, labels)
train_loss += loss.item()

# Backward pass and optimization
optimizer.zero_grad()
Expand Down

0 comments on commit f8f80f6

Please sign in to comment.