You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am facing the foll. issue using the pytorch, torchvision, and PIL versions (because of compatibility requirement with cuda 10.1) as:
torch: 1.4.0
torchvision: 0.5.0
PIL: 5.2.0
Traceback (most recent call last):
File "./main.py", line 186, in
cuda=cuda
File "/home/js/DGR_pytorch/train.py", line 102, in train
collate_fn=collate_fn,
File "/home/js/DGR_pytorch/dgr.py", line 130, in train_with_replay
collate_fn=collate_fn,
File "/home/js/DGR_pytorch/dgr.py", line 205, in _train_batch_trainable_with_replay
callback(trainable, progress, batch_index, result)
File "/home/js/DGR_pytorch/train.py", line 157, in cb
result['g_loss'], 'generator g loss', iteration, env=env
File "/home/js/DGR_pytorch/visual.py", line 87, in visualize_scalar
[name], name, iteration, env=env
File "/home/js/DGR_pytorch/visual.py", line 92, in visualize_scalars
assert len(scalars) == len(names)
File "/home/js/anaconda3/envs/env_con/lib/python3.5/site-packages/torch/tensor.py", line 445, in len
raise TypeError("len() of a 0-d tensor")
TypeError: len() of a 0-d tensor
Kindly suggest an alternative. Thank you.
The text was updated successfully, but these errors were encountered:
Hi,
I am facing the foll. issue using the pytorch, torchvision, and PIL versions (because of compatibility requirement with cuda 10.1) as:
torch: 1.4.0
torchvision: 0.5.0
PIL: 5.2.0
Traceback (most recent call last):
File "./main.py", line 186, in
cuda=cuda
File "/home/js/DGR_pytorch/train.py", line 102, in train
collate_fn=collate_fn,
File "/home/js/DGR_pytorch/dgr.py", line 130, in train_with_replay
collate_fn=collate_fn,
File "/home/js/DGR_pytorch/dgr.py", line 205, in _train_batch_trainable_with_replay
callback(trainable, progress, batch_index, result)
File "/home/js/DGR_pytorch/train.py", line 157, in cb
result['g_loss'], 'generator g loss', iteration, env=env
File "/home/js/DGR_pytorch/visual.py", line 87, in visualize_scalar
[name], name, iteration, env=env
File "/home/js/DGR_pytorch/visual.py", line 92, in visualize_scalars
assert len(scalars) == len(names)
File "/home/js/anaconda3/envs/env_con/lib/python3.5/site-packages/torch/tensor.py", line 445, in len
raise TypeError("len() of a 0-d tensor")
TypeError: len() of a 0-d tensor
Kindly suggest an alternative. Thank you.
The text was updated successfully, but these errors were encountered: