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
def repackage_hidden(h):
"""用新的变量重新包装隐藏层,将它们从历史中分离。"""
if type(h) == tuple: # lstm
return tuple(repackage_hidden(v) for v in h)
else: # rnn/gru
return Variable(h.data)
TypeError: iteration over a 0-d tensor,请问你在运行得时候遇到过这个问题吗
The text was updated successfully, but these errors were encountered: