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

指出cascaded_wrappers.py的一个问题,cell的size问题会导致训练无法继续 #6

Open
cszr-liuxiaobo opened this issue Jan 7, 2024 · 0 comments

Comments

@cszr-liuxiaobo
Copy link

cascaded_wrappers.py的276行,你固定死了cell的size为self.batch_size,实际上由于batch在最后一轮有可能不严格等于batch size。所以需要让cell等于inp.shape[0],即
cell = cell.unsqueeze(0).repeat(inp.shape[0], 1)

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