PRGC icon indicating copy to clipboard operation
PRGC copied to clipboard

help

Open zzyybtxl opened this issue 2 years ago • 1 comments

When I use multi_gpu to run train script,It shows 'zip argument #1 must support iteration',and I have already transferred the type of function evaluate's return to tensor.Can you tell me how to fix the issue?

zzyybtxl avatar May 13 '22 13:05 zzyybtxl

HI,When I use multi_gpu to run train script,It shows 'ValueError: only one element tensors can be converted to Python scalars', Traceback (most recent call last): File "/PRGC-main/train.py", line 229, in train_and_evaluate(model, params, ex_params, args.restore_file) File "/PRGC-main/train.py", line 150, in train_and_evaluate train(model, train_loader, optimizer, params, ex_params) File "/PRGC-main/train.py", line 84, in train loss_avg_seq.update(loss_seq.item()) Had you meet the issue,and can you tell me how to fix that?thanks!

suexin27 avatar May 25 '22 14:05 suexin27