Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/FasterTransformer
/ cpu_map_location
Function
cpu_map_location
examples/pytorch/utils.py:54–55 ·
view source on GitHub ↗
(storage, loc)
Source
from the content-addressed store, hash-verified
52
53
54
def
cpu_map_location(storage, loc):
55
return
storage.cpu()
56
57
58
def
gpu_map_location(storage, loc):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected