-
Notifications
You must be signed in to change notification settings - Fork 152
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
问一下关于字符长度的问题 #24
Comments
1)这是网络初始化变量的过程,与PyTorch动态申请显存的过程无关。如果你的字符长度非常长,超过了5,那么PyTorch将会继续扩大显存,所以不需要担心这个问题; |
非常感谢!还想问一下,字符长度和识别的准确率之间是否有必然的联系,您这边在训练的时候,有发现最佳长度是多少个字符么 |
训练的字符长度和测试准确率没有必然关系。所有训练的单词来源于90K字典,在读取时末尾加入了终止符“$”,训练模型预测“$”表示结束。例如,在demo中,我们只显示了终止符前的预测结果。所以,长度这个因素在这个任务中不是关键变量。 |
好的,,谢谢! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
text = torch.LongTensor(opt.batchSize * 5)
text_rev = torch.LongTensor(opt.batchSize * 5)
length = torch.IntTensor(opt.batchSize)
你好,问一下,在这几行,5的含义指的是字符的最大长度么,如果我的字符长度超过5,是否需要更改为实际长度
length在网络中的attention中使用到,具体作用是什么啊
The text was updated successfully, but these errors were encountered: