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

Method half

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

Source from the content-addressed store, hash-verified

373 return self
374
375 def half(self):
376 self.weight.half()
377 self._initialize_model(force_init=True)
378 return self
379
380 def bfloat16(self):
381 self.weight.bfloat16()

Callers

nothing calls this directly

Calls 2

_initialize_modelMethod · 0.95
halfMethod · 0.45

Tested by

no test coverage detected