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

Method type

python/interface/ltp/module.py:45–47  ·  view source on GitHub ↗
(self, dst_type: Union[str, torch.dtype])

Source from the content-addressed store, hash-verified

43 return super().cpu()
44
45 def type(self, dst_type: Union[str, torch.dtype]) -> Module:
46 self.__update_properties(dtype=dst_type)
47 return super().type(dst_type=dst_type)
48
49 def float(self) -> Module:
50 self.__update_properties(dtype=torch.float)

Callers

nothing calls this directly

Calls 1

__update_propertiesMethod · 0.95

Tested by

no test coverage detected