Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fanis-khafizov committed Jan 30, 2025
1 parent 8cb9d2b commit 006b122
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions code/ResNet/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ def train(model, optimizer, compressor, criterion, train_dataset, val_dataset, n
_, predicted = outputs.max(1)
total += targets.size(0)
correct += predicted.eq(targets).sum().item()

tqdm.write(f'Batch {batch_idx+1}/{len(train_dataset)} - Loss: {loss.item():.3f}, Acc: {100. * correct / total:.3f}%')

train_loss /= len(train_dataset)
train_accuracy = 100. * correct / total
Expand Down

0 comments on commit 006b122

Please sign in to comment.