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

TypeError: ufunc 'add' did not contain a loop with signature matching types dtype('S32') dtype('S32') dtype('S32') #139

Open
kocharshaivi19 opened this issue Mar 7, 2018 · 0 comments

Comments

@kocharshaivi19
Copy link

kocharshaivi19 commented Mar 7, 2018

Hi,
I am facing issues at this line:

backout = self.net.backward_from_layer(params.push_layer, diffs if is_conv else diffs[:,:,0,0])

and it says:
File "/share/apps/caffe/20170108/intel/python/caffe/pycaffe.py", line 157, in _Net_backward
outputs = set(self.inputs + diffs)
TypeError: ufunc 'add' did not contain a loop with signature matching types dtype('S32') dtype('S32') dtype('S32')

I have tried changing the dtype of diffs to string(S32) and float32, but getting the same error again and again.
Can anyone help resolve this issue by letting me know what can be possible change?

P.S. I am using self.net.backward(diffs=diffs if is_conv else diffs[:,:,0,0]])

Thank you :)

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