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
I'm run your code,but it did't work and had a error .What should i do?
Traceback (most recent call last):
File "main_pf.py", line 196, in
train()
File "main_pf.py", line 156, in train
hidden = repackage_hidden(hidden)
File "main_pf.py", line 126, in repackage_hidden
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in repackage_hidden
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in repackage_hidden
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in repackage_hidden
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in repackage_hidden
return tuple(repackage_hidden(v) for v in h)
File "/root/anaconda3/lib/python3.6/site-packages/torch/tensor.py", line 360, in iter
raise TypeError('iteration over a 0-d tensor')
TypeError: iteration over a 0-d tensor
The text was updated successfully, but these errors were encountered:
I'm run your code,but it did't work and had a error .What should i do?
Traceback (most recent call last):
File "main_pf.py", line 196, in
train()
File "main_pf.py", line 156, in train
hidden = repackage_hidden(hidden)
File "main_pf.py", line 126, in repackage_hidden
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in repackage_hidden
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in repackage_hidden
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in repackage_hidden
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in
return tuple(repackage_hidden(v) for v in h)
File "main_pf.py", line 126, in repackage_hidden
return tuple(repackage_hidden(v) for v in h)
File "/root/anaconda3/lib/python3.6/site-packages/torch/tensor.py", line 360, in iter
raise TypeError('iteration over a 0-d tensor')
TypeError: iteration over a 0-d tensor
The text was updated successfully, but these errors were encountered: