mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 21:57:15 +03:00
Fx gpu_id arg in pretrain
This commit is contained in:
parent
95648dcdd7
commit
f8bf5b7fe5
|
@ -137,7 +137,9 @@ def pretrain(
|
|||
util.fix_random_seed(seed)
|
||||
if gpu_id != -1:
|
||||
has_gpu = require_gpu(gpu_id=gpu_id)
|
||||
msg.info("Using GPU {}".format(gpu_id) if has_gpu else "Not using GPU")
|
||||
msg.info("Using GPU {}".format(gpu_id))
|
||||
else:
|
||||
msg.info("Not using GPU")
|
||||
output_dir = Path(output_dir)
|
||||
if not output_dir.exists():
|
||||
output_dir.mkdir()
|
||||
|
|
Loading…
Reference in New Issue
Block a user