MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / __init__

Method __init__

DeepSpeedExample/megatron/fp16/fp16util.py:96–98  ·  view source on GitHub ↗
(self, network)

Source from the content-addressed store, hash-verified

94 """
95
96 def __init__(self, network):
97 super(FP16Model, self).__init__()
98 self.network = convert_network(network, dtype=torch.half)
99
100 def forward(self, *inputs):
101 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