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

Method float

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

Source from the content-addressed store, hash-verified

47 return super().type(dst_type=dst_type)
48
49 def float(self) -> Module:
50 self.__update_properties(dtype=torch.float)
51 return super().float()
52
53 def double(self) -> Module:
54 self.__update_properties(dtype=torch.double)

Callers 1

forwardMethod · 0.80

Calls 1

__update_propertiesMethod · 0.95

Tested by

no test coverage detected