Skip to content

Commit 0c3b20a

Browse files
committed
Update utils2.py
1 parent 1861b49 commit 0c3b20a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CIFAR10_code/utils2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def train(epoch, epochs, model, dataloader, criterion, optimizer, scheduler = No
9494
loss.backward()
9595
optimizer.step()
9696

97-
pbar.set_postfix(**{'Train Acc' : running_accuracy.item()/(step+1),
97+
pbar.set_postfix(**{'Train Acc' : running_accuracy.items()/(step+1),
9898
'Train Loss' :running_loss.item()/(step+1)})
9999
pbar.update(1)
100100
if scheduler:

0 commit comments

Comments
 (0)