File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
from typing import List , Tuple
2
- import torch
3
2
4
3
from thinc .api import Model , chain
5
4
from thinc .api import PyTorchWrapper , ArgsKwargs
6
5
from thinc .types import Floats2d , Ints2d , Ints1d
7
- from thinc .util import xp2torch , torch2xp
6
+ from thinc .util import torch , xp2torch , torch2xp
8
7
9
8
from ...tokens import Doc
10
9
from ...util import registry
Original file line number Diff line number Diff line change 1
1
from typing import List , Tuple
2
- import torch
3
2
4
3
from thinc .api import Model , chain , tuplify
5
4
from thinc .api import PyTorchWrapper , ArgsKwargs
6
5
from thinc .types import Floats2d , Ints1d
7
- from thinc .util import xp2torch , torch2xp
6
+ from thinc .util import torch , xp2torch , torch2xp
8
7
9
8
from ...tokens import Doc
10
9
from ...util import registry
You can’t perform that action at this time.
0 commit comments