mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Fix tests for gpu
This commit is contained in:
parent
165e378082
commit
426b745640
|
@ -95,12 +95,18 @@ def test_PrecomputableAffine(nO=4, nI=5, nF=3, nP=2):
|
|||
|
||||
|
||||
def test_prefer_gpu():
|
||||
assert not prefer_gpu()
|
||||
try:
|
||||
import cupy
|
||||
except ImportError:
|
||||
assert not prefer_gpu()
|
||||
|
||||
|
||||
def test_require_gpu():
|
||||
with pytest.raises(ValueError):
|
||||
require_gpu()
|
||||
try:
|
||||
import cupy
|
||||
except ImportError:
|
||||
with pytest.raises(ValueError):
|
||||
require_gpu()
|
||||
|
||||
|
||||
def test_create_symlink_windows(
|
||||
|
|
Loading…
Reference in New Issue
Block a user