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

new() received an invalid combination of arguments #9

Closed
HowardZhang1994 opened this issue Aug 4, 2018 · 4 comments
Closed

new() received an invalid combination of arguments #9

HowardZhang1994 opened this issue Aug 4, 2018 · 4 comments

Comments

@HowardZhang1994
Copy link

E TypeError: new() received an invalid combination of arguments - got (float, int, int, int), but expected one of:
E * (torch.device device)
E * (torch.Storage storage)
E * (Tensor other)
E * (tuple of ints size, torch.device device)
E * (object data, torch.device device)

how to fix it? Thanks

@tengshaofeng
Copy link
Owner

you can refer to my closed issue: https://github.com/tengshaofeng/ResidualAttentionNetwork-pytorch/issues/3, maybe it works.

@HowardZhang1994
Copy link
Author

Page not found...

@tengshaofeng
Copy link
Owner

how about: #3

@HowardZhang1994
Copy link
Author

It works! Thanks!

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