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

model = ResidualAttentionModel() error with python3 #27

Open
carol007 opened this issue Nov 20, 2019 · 1 comment
Open

model = ResidualAttentionModel() error with python3 #27

carol007 opened this issue Nov 20, 2019 · 1 comment

Comments

@carol007
Copy link

TypeError: new() received an invalid combination of arguments - got (float, int, int, int), but expected one of:

  • (torch.device device)
  • (torch.Storage storage)
  • (Tensor other)
  • (tuple of ints size, torch.device device)
  • (object data, torch.device device)
@victorruelle
Copy link

You need to convert the input and output filters parameters of the Conv2d layers to int. If you look at the current arguments, they are float ( eg : 2.0 instead of 2) which is not accepted by torch.

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