yunjey / pytorch-tutorial

PyTorch Tutorial for Deep Learning Researchers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

format后面是不是多了两参数啊

s1162276945 opened this issue · comments

.format(epoch+1, num_epochs, i+1, total_step, loss.item()))

Did you get error? I remember I didn't get any error here.
In theory, 'Epoch [{}/{}], Step [{}/{}], Loss: {:.4f}' has 5 {} correspond to 5 parameters.

I'm sorry, I missed 'Step [{}/{}]', but didn't get any error here.