Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ FloatTensor
Method
FloatTensor
accelerator/cuda_accelerator.py:322–323 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
320
321
@property
322
def
FloatTensor(self):
323
return
functools.partial(torch.tensor, dtype=torch.float, device=
'cuda'
)
324
325
@property
326
def
HalfTensor(self):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected