From 0796401c1955fc3508b2d1f50b402b492fa690b2 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Wed, 14 Oct 2020 16:55:00 +0200 Subject: [PATCH] call NumpyOps instead of get_current_ops() --- spacy/tests/pipeline/test_models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spacy/tests/pipeline/test_models.py b/spacy/tests/pipeline/test_models.py index 1ab5f7ea5..d04ac9cd4 100644 --- a/spacy/tests/pipeline/test_models.py +++ b/spacy/tests/pipeline/test_models.py @@ -4,7 +4,7 @@ import numpy import pytest from numpy.testing import assert_almost_equal from spacy.vocab import Vocab -from thinc.api import get_current_ops, Model, data_validation +from thinc.api import NumpyOps, Model, data_validation from thinc.types import Array2d, Ragged from spacy.lang.en import English @@ -12,7 +12,8 @@ from spacy.ml import FeatureExtractor, StaticVectors from spacy.ml._character_embed import CharacterEmbed from spacy.tokens import Doc -OPS = get_current_ops() + +OPS = NumpyOps() texts = ["These are 4 words", "Here just three"] l0 = [[1, 2], [3, 4], [5, 6], [7, 8]]