mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-18 20:22:25 +03:00
Import torch from thinc
This commit is contained in:
parent
5cbc9f4573
commit
c9233a5a1f
|
@ -1,10 +1,9 @@
|
|||
from typing import List, Tuple
|
||||
import torch
|
||||
|
||||
from thinc.api import Model, chain
|
||||
from thinc.api import PyTorchWrapper, ArgsKwargs
|
||||
from thinc.types import Floats2d, Ints2d, Ints1d
|
||||
from thinc.util import xp2torch, torch2xp
|
||||
from thinc.util import torch, xp2torch, torch2xp
|
||||
|
||||
from ...tokens import Doc
|
||||
from ...util import registry
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
from typing import List, Tuple
|
||||
import torch
|
||||
|
||||
from thinc.api import Model, chain, tuplify
|
||||
from thinc.api import PyTorchWrapper, ArgsKwargs
|
||||
from thinc.types import Floats2d, Ints1d
|
||||
from thinc.util import xp2torch, torch2xp
|
||||
from thinc.util import torch, xp2torch, torch2xp
|
||||
|
||||
from ...tokens import Doc
|
||||
from ...util import registry
|
||||
|
|
Loading…
Reference in New Issue
Block a user