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

使用biaobei数据集,train在step9980时这样报错,请问我应该从哪里开始修改呢 #15

Open
sisibeauty opened this issue Jul 10, 2021 · 2 comments

Comments

@sisibeauty
Copy link

RuntimeError: cannot reshape tensor of 0 elements into shape [0, 39, -1] because the unspecified dimension size -1 can be any value and is ambiguous

@ranchlai
Copy link
Owner

  1. 检查输入是否有空行。
  2. 可以在报错的地方加入
    try:
    出错行
    except:
    import pdb;pdb.set_trace()

然后进行调式模式看为啥出错

@Moonmore
Copy link

RuntimeError: cannot reshape tensor of 0 elements into shape [0, 39, -1] because the unspecified dimension size -1 can be any value and is ambiguous

我也碰到这个一摸一样的问题,按照@ranchlai 的做法没得到解决,请问你现在解决了吗?

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