mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-04 21:50:35 +03:00
Auto-format code with black (#9530)
Co-authored-by: explosion-bot <explosion-bot@users.noreply.github.com>
This commit is contained in:
parent
c9f28b6d08
commit
b0b115ff39
|
@ -1,2 +1,2 @@
|
||||||
from .callbacks import create_models_with_nvtx_range # noqa: F401
|
from .callbacks import create_models_with_nvtx_range # noqa: F401
|
||||||
from .models import * # noqa: F401, F403
|
from .models import * # noqa: F401, F403
|
||||||
|
|
|
@ -30,7 +30,9 @@ def create_models_with_nvtx_range(
|
||||||
)
|
)
|
||||||
|
|
||||||
for node in models.walk():
|
for node in models.walk():
|
||||||
with_nvtx_range(node, forward_color=forward_color, backprop_color=backprop_color)
|
with_nvtx_range(
|
||||||
|
node, forward_color=forward_color, backprop_color=backprop_color
|
||||||
|
)
|
||||||
|
|
||||||
return nlp
|
return nlp
|
||||||
|
|
||||||
|
|
|
@ -168,7 +168,7 @@ def test_kb_serialize_2(nlp):
|
||||||
|
|
||||||
|
|
||||||
def test_kb_set_entities(nlp):
|
def test_kb_set_entities(nlp):
|
||||||
""" Test that set_entities entirely overwrites the previous set of entities """
|
"""Test that set_entities entirely overwrites the previous set of entities"""
|
||||||
v = [5, 6, 7, 8]
|
v = [5, 6, 7, 8]
|
||||||
v1 = [1, 1, 1, 0]
|
v1 = [1, 1, 1, 0]
|
||||||
v2 = [2, 2, 2, 3]
|
v2 = [2, 2, 2, 3]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user