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

Method cpu

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

Source from the content-addressed store, hash-verified

39 return super().cuda(device=device)
40
41 def cpu(self) -> Module:
42 self.__update_properties(device=torch.device("cpu"))
43 return super().cpu()
44
45 def type(self, dst_type: Union[str, torch.dtype]) -> Module:
46 self.__update_properties(dtype=dst_type)

Callers 12

_cws_postMethod · 0.80
_pos_postMethod · 0.80
_ner_postMethod · 0.80
_srl_postMethod · 0.80
_dep_postMethod · 0.80
_sdp_postMethod · 0.80
get_graph_entitiesMethod · 0.80
updateMethod · 0.80
get_graph_entitiesMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
eisnerFunction · 0.80

Calls 2

__update_propertiesMethod · 0.95
deviceMethod · 0.80

Tested by

no test coverage detected