Merge pull request #31 from VE-FORBRYDERNE/cpu

Fix gen_in device logic in generate()
This commit is contained in:
henk717 2021-11-17 22:42:31 +01:00 committed by GitHub
commit 27ee45b9cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -1458,8 +1458,6 @@ def generate(txt, minimum, maximum, found_entries=None):
gen_in = gen_in.to(0)
elif(vars.hascuda and vars.breakmodel):
gen_in = gen_in.to(breakmodel.primary_device)
elif(vars.hascuda):
gen_in = gen_in.to(0)
else:
gen_in = gen_in.to('cpu')