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

'MaxPool2DBackward' object has no attribute 'stride' #8

Open
niaoyu opened this issue Feb 2, 2018 · 2 comments
Open

'MaxPool2DBackward' object has no attribute 'stride' #8

niaoyu opened this issue Feb 2, 2018 · 2 comments

Comments

@niaoyu
Copy link

niaoyu commented Feb 2, 2018

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?

@wangbofei11
Copy link

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!

@Jongchan
Copy link

Jongchan commented Mar 23, 2018

Same here. Also facing the same problem here.

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

3 participants