From 14a42cbc4a0373c15455c61ab8bf419a0a35a083 Mon Sep 17 00:00:00 2001 From: Richard Liaw Date: Mon, 22 Jun 2020 19:11:26 -0700 Subject: [PATCH] lint --- spacy/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/util.py b/spacy/util.py index 004ef19e1..38add4c65 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -898,6 +898,7 @@ def escape_html(text): def use_gpu(gpu_id): return require_gpu(gpu_id) + def gpu_is_available(): try: cupy.cuda.runtime.getDeviceCount() @@ -905,6 +906,7 @@ def gpu_is_available(): except cupy.cuda.runtime.CUDARuntimeError: return False + def fix_random_seed(seed=0): random.seed(seed) numpy.random.seed(seed)