-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
@WenbinSun
Description
请问老师这个问题怎么解决觉得?
if (e + 1) % 100 == 0: # 每 100 次输出结果
---> 12 print('Epoch: {}, Loss: {:.5f}'.format(e + 1, loss.data[0]))
IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number
Metadata
Metadata
Assignees
Labels
No labels