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

ValueError: could not broadcast input array from shape(1000,1,1) into shape (1,1000) #5

Open
zhoafan opened this issue Jul 31, 2017 · 2 comments

Comments

@zhoafan
Copy link

zhoafan commented Jul 31, 2017

hi,
I am trying to use your code for the same purpose. But there is a error in bw=net.backward(**{net.outputs[0]: caffeLabel})
ValueError: could not broadcast input array from shape(1000,1,1) into shape (1,1000).
Can you tell me the reason. Thank you. Looking forward to your reply.

@zhaoyang1708
Copy link

I have the same problem.

@billhhh
Copy link

billhhh commented Sep 15, 2017

change these 2 codes into

caffeLabel = np.zeros((1,1,1000))
caffeLabel[0,0,label_index] = 1;

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