pytorch2caffe icon indicating copy to clipboard operation
pytorch2caffe copied to clipboard

IndexBackward error

Open theodoruszq opened this issue 7 years ago • 8 comments

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 

theodoruszq avatar Nov 26 '17 12:11 theodoruszq

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

longcw avatar Dec 04 '17 06:12 longcw

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'

duyuting avatar Dec 07 '17 07:12 duyuting

I met broadcastBackward error

rainfalj avatar Dec 19 '17 10:12 rainfalj

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

RORO11 avatar Mar 09 '18 07:03 RORO11

I also face same problem.

prashant-puri avatar Apr 24 '18 06:04 prashant-puri

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

GeorgeBohw avatar Jun 04 '18 10:06 GeorgeBohw

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.

zhangleiedu avatar Aug 01 '18 06:08 zhangleiedu

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

JennyVVV avatar Jan 15 '20 05:01 JennyVVV