-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Description
Traceback (most recent call last):
File "main.py", line 149, in
train_loss = train(Data, Data.train[0], Data.train[1], model, criterion, optim, args.batch_size)
File "main.py", line 60, in train
total_loss += loss.data[0];
IndexError: invalid index of a 0-dim tensor. Use tensor.item() in Python or tensor.item<T>() in C++ to convert a 0-dim tensor to a number
RiekeZoe and glotm
Metadata
Metadata
Assignees
Labels
No labels