write all data on training to training log

This commit is contained in:
2025-12-25 02:07:49 +00:00
parent 921e24b451
commit 4f500e8b4c

View File

@@ -176,7 +176,6 @@ def training_entry():
loss_fn.backward() loss_fn.backward()
opt.step() opt.step()
if step % TRAIN_PROGRESS == 0:
with torch.no_grad(): with torch.no_grad():
pred = (torch.sigmoid(logits) > 0.5).float() pred = (torch.sigmoid(logits) > 0.5).float()
acc = (pred == y).float().mean().item() acc = (pred == y).float().mean().item()