MCPcopy
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_pretrainedMethod · 0.80
__init__Method · 0.80
cudaMethod · 0.80
cpuMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected