Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/HIT-SCIR/ltp
/ device
Method
device
python/interface/ltp/module.py:25–26 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
23
24
@property
25
def
device(self) -> Union[str, torch.device]:
26
return
self._device
27
28
@device.setter
29
def
device(self, new_device: Union[str, torch.device]):
Callers
4
_from_pretrained
Method · 0.80
__init__
Method · 0.80
cuda
Method · 0.80
cpu
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected