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

TypeError:Device() received an invalid combination of arguments - got() #12

Open
ivylinden opened this issue Jan 23, 2019 · 1 comment

Comments

@ivylinden
Copy link

Hello,when I run the code, i encounter an error, score_dict = eval_dataloader(model_for_eval, loader_dict['query'], loader_dict['gallery'], deepcopy(cfg.eval))
TypeError:Device() received an invalid combination of arguments - got(),but expected one of
*(torch.device device)
*(str type,int index)
In cfg.eval, 'device':torch.device('cuda')

@zhaoyang110157
Copy link

Have you fix this problem yet? I meet this problem in another project and can't figure out why.

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