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

ViewBackward not had atrribute 'old_size' #24

Open
erickingxu opened this issue Sep 29, 2018 · 1 comment
Open

ViewBackward not had atrribute 'old_size' #24

erickingxu opened this issue Sep 29, 2018 · 1 comment

Comments

@erickingxu
Copy link

when net output is a list , list can not support out.grad_fn when run FindMultiTops(out.grad_fn),
so I try loop this list like this for making grad_fn working:
for out in outputs:
#outputs is my net output, it is a mutiple-list
for o in out:
FindMultiTops(o.grad_fn)
and then, I got this error at follow function:
def flatten(pytorch_layer):
""" Only support flatten view """
total = 1
for dim in pytorch_layer.old_size: # error is here: no attribute 'olde_size'
total *= dim
and I run pytorch 0.4.0, so can i make sure it is caused by pytorch version ?

@starimeL
Copy link
Owner

starimeL commented Oct 9, 2018

Yes, the errors of attribute not found seemingly are almost caused by higher version. Please make sure you are converting your model on pytorch 0.2.0 (While you can train your model on 0.4.0)

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

2 participants