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

Method half

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

Source from the content-addressed store, hash-verified

55 return super().double()
56
57 def half(self) -> Module:
58 self.__update_properties(dtype=torch.half)
59 return super().half()
60
61 def __update_properties(
62 self, device: Optional[torch.device] = None, dtype: Optional[torch.dtype] = None

Callers

nothing calls this directly

Calls 1

__update_propertiesMethod · 0.95

Tested by

no test coverage detected