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

seq_len取值小于48时,代码无法运行 #71

Closed
okaygogo opened this issue Apr 29, 2024 · 1 comment
Closed

seq_len取值小于48时,代码无法运行 #71

okaygogo opened this issue Apr 29, 2024 · 1 comment

Comments

@okaygogo
Copy link

在代码运行时,当输入长度(seq_len)取值小于48时,数据可以载入,但是模型运行就会报错,RuntimeError: Trying to resize storage that is not resizable.
这是因为什么呢?如何改进?期待您的解答

@hbwzj
Copy link

hbwzj commented May 6, 2024

在代码运行时,当输入长度(seq_len)取值小于48时,数据可以载入,但是模型运行就会报错,RuntimeError: Trying to resize storage that is not respensable . 这是因为什么呢?如何改进?期待您的解答

因为那个-label_len', type=int, default=48和你的输入长度一样了呀,你试着改成小一倍试试

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

3 participants