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

在自建中文数据集上出现错误 #23

Open
zi1zi opened this issue Aug 29, 2023 · 0 comments
Open

在自建中文数据集上出现错误 #23

zi1zi opened this issue Aug 29, 2023 · 0 comments

Comments

@zi1zi
Copy link

zi1zi commented Aug 29, 2023

感谢您出色的工作,我自己创建了一个中文数据集,运行时出现了以下错误
Traceback (most recent call last):
File "main.py", line 593, in
main()
File "main.py", line 581, in main
train(opts)
File "main.py", line 135, in train
attr_A_intensity = label_A * attr_A_data + (1 - label_A) * attr_A_embd
RuntimeError: The size of tensor a (17) must match the size of tensor b (37) at non-singleton dimension 1
出错的位置如图所示,图中两个print的输出分别为 torch.Size([64, 17]),torch.Size([64, 37])
图片

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