PMF icon indicating copy to clipboard operation
PMF copied to clipboard

only one element tensors can be converted to Python scalars

Open Chang-007 opened this issue 2 years ago • 1 comments

Thank you very much for your work, and I am getting errors like this during training: only one element tensors can be converted to Python scalars 0582950fbc7fdecb442b400e201b66e

It can be trained normally at the beginning, but this error is reported after a few hundred iters. Have you ever met? HELP

Chang-007 avatar Sep 06 '22 12:09 Chang-007

Hmm, that's werid, can you print the value of loss_lov.item() and input_feature.size(0).

A quickly suggestion is to comment this line, because it's just a logger of loss value, it won't effect the training process.

Best

iris0329 avatar Sep 20 '22 16:09 iris0329