Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_model
Method · 0.95
float
Method · 0.45
Tested by
no test coverage detected