-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
貌似TextRNN_Att有问题! #8
Comments
刚才试跑了一下,我这边是没问题的,你看下环境什么的有没有问题吧 |
哦哦! |
我跑了五次 出现了一次这种情况,loss成nan了,应该是代码里有bug,我明天找一下。感谢反馈! |
我pytorch1.2 python3.6 也有这个情况(nan),不知咋搞的,正在排查,不过还是感谢大佬这个文本分类系列,对于刚入门pytorch的小白真实一大福音啊,衷心谢谢!期待新作 |
我也是遇到同样状况了,和楼上一样,用的3.6和3.7都试过了,不知道哪有错误,求大佬帮助 |
请问loss成nan是否解决,谢谢 |
还没解决,您这边解决了吗 |
请问这个问题解决了吗? |
我也没找到合适的解决方法 |
哥,看一下楼上的PR啊 |
我试过用虚拟环境一模一样,但还是有loss变成nan |
这么快? |
当时各种都试过了,后来实在找不到原因 |
我是说#19 |
@wangzhedaye |
self.w = nn.Parameter(tensor.randn(config.hidden_size * 2)) |
self.w = nn.Parameter(torch.randn(config.hidden_size * 2))改成这个就好了啦,应该没问题了 |
@wangzhedaye 不好意思,打错了,把tensor改成torch就行了,你试一下,看是不是对的 |
我自己已经改好啦,哈哈哈,谢谢了 |
@649453932

The text was updated successfully, but these errors were encountered: