MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / float

Method float

examples/pytorch/gpt/utils/gpt_decoder.py:370–373  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

368 return self
369
370 def float(self):
371 self.weight.float()
372 self._initialize_model(force_init=True)
373 return self
374
375 def half(self):
376 self.weight.half()

Callers

nothing calls this directly

Calls 2

_initialize_modelMethod · 0.95
floatMethod · 0.45

Tested by

no test coverage detected