Skip to content
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

6.5.2 RNN简洁实现,使用相邻采样时,state在新的epoch中未被初始化 #161

Open
jianli-Alex opened this issue Nov 6, 2020 · 0 comments

Comments

@jianli-Alex
Copy link

bug描述
2020-11-06 16-43-35 的屏幕截图
state = None放在了for epoch in range(num_epochs)上. 因此,在新的epoch中,state实际上没有被初始化,而是使用上一epoch最后一次迭代最后一个时间步的state, 这样并不合理.
要把state = None放在了for epoch in range(num_epochs)下面,for X, Y in data_iter上面

版本信息
pytorch: 1.6.0
torchvision: 0.7.0
torchtext:
...

@jianli-Alex jianli-Alex changed the title 6.5.2 RNN简单实现使用相邻采样时,state在新的epoch中未被初始化 6.5.2 RNN简单实现,使用相邻采样时,state在新的epoch中未被初始化 Nov 6, 2020
@jianli-Alex jianli-Alex changed the title 6.5.2 RNN简单实现,使用相邻采样时,state在新的epoch中未被初始化 6.5.2 RNN简洁实现,使用相邻采样时,state在新的epoch中未被初始化 Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant