-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Viterbi解码的cat操作中,tensor维度不一致 #8
Comments
You need to confirm your PyTorch version. Currently it only support the PyTorch 0.3.0 |
我的PyTorch版本是0.3.1。可能在0.3的子版本间有一些细微差别。
修改为
后看起来似乎正常了 |
Great! |
Thank u |
i have changed 2 parts as u mentioned above. but it still cannot work as expected. oops. |
@xiao2mo show me your error |
现在到了pytorch0.4.1了=。=mul() received an invalid combination of arguments - got(list), but expected one of:"Tensor""Number" |
你好,我改了之后为什么还有这样的错? |
请问你解决了这个问题 |
删掉crf.py的第75行、第96行、第143行里的参数“1”,就能正常运行了 |
你好,最近刚开始研究这份代码,请问能加个联系方式请教交流下吗? |
删掉后好像不起作用 |
在对partition_history执行cat操作时,输入的tensor list维度不一致。
partition_history中,第一个tensor是 [batch_size, tag_size, 1]:
而在for中,torch.max返回的partition形状为 [batch_size,tag_size],与第一个tensor维度不一致,导致cat操作失败
请问如何修改
The text was updated successfully, but these errors were encountered: