MCPcopy Create free account
hub / github.com/THUDM/GLM / __init__

Method __init__

fp16/fp16util.py:93–95  ·  view source on GitHub ↗
(self, network)

Source from the content-addressed store, hash-verified

91 """
92
93 def __init__(self, network):
94 super(FP16Model, self).__init__()
95 self.network = convert_network(network, dtype=torch.half)
96
97 def forward(self, *inputs):
98 inputs = tuple(t.half() for t in inputs)

Callers

nothing calls this directly

Calls 2

convert_networkFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected