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

无法训练 #7

Open
ColorWP opened this issue Apr 22, 2019 · 2 comments
Open

无法训练 #7

ColorWP opened this issue Apr 22, 2019 · 2 comments

Comments

@ColorWP
Copy link

ColorWP commented Apr 22, 2019

请问博主您是否训练成功,我这里一直在报错,我尝试修改很多次,但是依旧没有解决!
报错信息:
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 57 and 213 in dimension 3 at /pytorch/aten/src/TH/generic/THTensorMath.cpp:3616
请您指导下,谢谢!

@guess3w
Copy link

guess3w commented Sep 5, 2019

@ColorWP 这个应该是你设置了batch_size >1 ,但样本的label不是统一长度的,导致tensor不能合并。

@HonkCY
Copy link

HonkCY commented Mar 20, 2020

@guess3w 可以透過padding成固定長度來訓練嗎
不知道是否會對未來inference造成問題

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