KeyError: 'ExpandBackward'

I used pytorch 0.2.0_3 to convert a resmet50 pytorch model into a caffe model, but after I upgraded to pytorch 0.3.0.post4, a KeyError: ‘ExpandBackward’ occurred. Will ExpandBackward is adding new layer, how to deal with this problem?

how are you converting from pytorch to caffe? maybe your converter doesn’t know how to handle this.

yes,I use https://github.com/longcw/pytorch2caffe/blob/master/pytorch2caffe.py to convert pytorch to caffe. and it work in pytorch 0.3 but not in pytorch 0.3. I can’t found nothing about ExpandBackward.

file a bug report on that repository, they will have to change the converter slightly for 0.3

Is there any documentation of ExpandBackward so that we can try to fix it for pytorch 0.3?

2 Likes