Remove hard-coded GPU ID from pretrain (#5808)

This commit is contained in:
Adriane Boyd 2020-07-24 09:26:26 +02:00 committed by GitHub
parent 6d4d5c074c
commit 19dc42776a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ def pretrain(
config[key] = str(config[key])
util.fix_random_seed(seed)
has_gpu = prefer_gpu(gpu_id=1)
has_gpu = prefer_gpu()
msg.info("Using GPU" if has_gpu else "Not using GPU")
output_dir = Path(output_dir)