Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/FasterTransformer
/ to
Method
to
examples/pytorch/gpt/utils/gpt_decoder.py:366–368 ·
view source on GitHub ↗
(self, device=None)
Source
from the content-addressed store, hash-verified
364
return
self
365
366
def
to(self, device=None):
367
self.weight.to(device)
368
return
self
369
370
def
float(self):
371
self.weight.float()
Callers
nothing calls this directly
Calls
1
to
Method · 0.45
Tested by
no test coverage detected