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

IndexError: too many indices for tensor of dimension 1 #263

Open
guo560 opened this issue Nov 14, 2022 · 0 comments
Open

IndexError: too many indices for tensor of dimension 1 #263

guo560 opened this issue Nov 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@guo560
Copy link

guo560 commented Nov 14, 2022

Describe the bug(问题描述)
image
在basemodel的fit函数中,若batch_size为1,且model为多任务模型时,会导致y_pred的第0个维度被丢弃,从而产生错误。

@zanshuxun zanshuxun added the bug Something isn't working label Dec 7, 2022
zanshuxun added a commit that referenced this issue Feb 11, 2023
zanshuxun added a commit that referenced this issue Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants