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

IndexBackward error #4

Open
theodoruszq opened this issue Nov 26, 2017 · 8 comments
Open

IndexBackward error #4

theodoruszq opened this issue Nov 26, 2017 · 8 comments

Comments

@theodoruszq
Copy link

KeyError: 'IndexBackward'

How could we fix this error?

File "/home/zq/PROJECTS/projfog/pytorch2caffe/pytorch2caffe.py", line 166, in add_layer 
layer['type'] = layer_dict[parent_type]
KeyError: 'IndexBackward'
[1]    27580 segmentation fault (core dumped)  python resnetdemo.py 
@longcw
Copy link
Owner

longcw commented Dec 4, 2017

For now, this project doesn't support Index operation.
To support it, you have to find how caffe performs index selection.

@duyuting
Copy link

duyuting commented Dec 7, 2017

builtins.KeyError: 'NoneType'

File "/home/dyt/ssd.pytorch/pytorch2caffe/pytorch2caffe.py", line 165, in add_layer
layer['type'] = layer_dict[parent_type]

builtins.KeyError: 'NoneType'

@rainfalj
Copy link

I met broadcastBackward error

@RORO11
Copy link

RORO11 commented Mar 9, 2018

I met keyError['type']: 'ExpandBackward', and on windows,how can I solve this probelm???

@prashant-puri
Copy link

I also face same problem.

@GeorgeBohw
Copy link

what does "IndexBackward" mean?which layer's problem?

@zhangleiedu
Copy link

zhangleiedu commented Aug 1, 2018

In my case, 'IndexBackward' (pytorch0.4) is corresponding to 'Slice' in caffe , you can modify your layer_dict in pytorch2caffe.py, and add the params in this layer, hope this can help you.

@JennyVVV
Copy link

In my case, 'IndexBackward' (pytorch0.4) is corresponding to 'Slice' in caffe , you can modify your layer_dict in pytorch2caffe.py, and add the params in this layer, hope this can help you.

I have added 'IndexBackward': 'Slice' in the layer_dict, how can I add the params in this layer? What's the operation in this layer? When I try 'Slice', it reports errors.
elif parent_type =='IndexBackward': eltwise_param = { 'operation': 'Slice', } layer['eltwise_param'] = eltwise_param

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

9 participants