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

Method forward

DeepSpeedExample/megatron/fp16/fp16util.py:100–102  ·  view source on GitHub ↗
(self, *inputs)

Source from the content-addressed store, hash-verified

98 self.network = convert_network(network, dtype=torch.half)
99
100 def forward(self, *inputs):
101 inputs = tuple(t.half() for t in inputs)
102 return self.network(*inputs)
103
104
105def backwards_debug_hook(grad):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected