MCPcopy
hub / github.com/HIT-SCIR/ltp / __init__

Method __init__

python/interface/ltp/module.py:10–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8 __jit_unused_properties__ = ["device", "dtype"]
9
10 def __init__(self):
11 super().__init__()
12 self._dtype = torch.get_default_dtype()
13 self._device = torch.device("cpu")
14
15 @property
16 def dtype(self) -> Union[str, torch.dtype]:

Callers

nothing calls this directly

Calls 1

deviceMethod · 0.80

Tested by

no test coverage detected