mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Remove hard-coded GPU ID from pretrain (#5808)
This commit is contained in:
parent
6d4d5c074c
commit
19dc42776a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user