pytorch2caffe icon indicating copy to clipboard operation
pytorch2caffe copied to clipboard

'MaxPool2DBackward' object has no attribute 'stride'

Open niaoyu opened this issue 8 years ago • 2 comments

Some trouble happen when i use the tool for squeezenet.

First , it looks like names of some layers_grad had been changed,: MaxPool2dBackward=>MaxPool2DBackward

Then, after added the new "MaxPool2DBackward", it caused another error,seems like: "'MaxPool2DBackward' object has no attribute 'stride" or "'MaxPool2DBackward' object has no attribute 'kernel_size"

corresspoding to the code: pooling_param['kernel_size'] = func.kernel_size[0] pooling_param['stride'] = func.stride[0]

Does anyone could help?

niaoyu avatar Feb 02 '18 05:02 niaoyu

hello,I also meet this problem, when use pytorch with version>=0.3.0, this error happend, the grad_fn's name changed and it's param also changed. until now, I have not found solutions,if you can find a solution,please told me . tks!

wangbofei11 avatar Feb 09 '18 09:02 wangbofei11

Same here. Also facing the same problem here.

Jongchan avatar Mar 23 '18 08:03 Jongchan