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

could not broadcast input array from shape (2,13) into shape (2,) #173

Open
dengqiqi123 opened this issue Sep 29, 2024 · 2 comments
Open

Comments

@dengqiqi123
Copy link

python3.8.19
numpy 1.23.0
bert4torch 0.5.1
image
builtins.ValueError: could not broadcast input array from shape (2,13) into shape (2,)
降低numpy版本还是不行

@Tongjilibo
Copy link
Owner

要看你的输入是什么,如果你是代码中指定的类型,应该不会报错,如需要进一步的排查,需要看下你的源代码

@dengqiqi123
Copy link
Author

使用的你task_sentiment_classification.py这个代码,输入是
image
列表

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

2 participants