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

Method float

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

Source from the content-addressed store, hash-verified

957 return self
958
959 def float(self):
960 for name, param in self._parameters.items():
961 setattr(self, name, param.float())
962 return self
963
964 def half(self):
965 for name, param in self._parameters.items():

Callers 15

fuse_decoder_qkvFunction · 0.45
translateFunction · 0.45
to_floatMethod · 0.45
to_singleMethod · 0.45
to_floatMethod · 0.45
to_singleMethod · 0.45
to_int8Method · 0.45
accuracyFunction · 0.45
accuracyFunction · 0.45
validate_trtFunction · 0.45
mainFunction · 0.45
convert_typeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected