mirror of https://github.com/explosion/spaCy.git
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])
|
config[key] = str(config[key])
|
||||||
util.fix_random_seed(seed)
|
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")
|
msg.info("Using GPU" if has_gpu else "Not using GPU")
|
||||||
|
|
||||||
output_dir = Path(output_dir)
|
output_dir = Path(output_dir)
|
||||||
|
|
Loading…
Reference in New Issue