Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aigc3d/LHM
/ tocuda
Method
tocuda
engine/SegmentAPI/SAM.py:126–128 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
124
torch.cuda.empty_cache()
125
126
def
tocuda(self):
127
self.box_prior.cuda()
128
self.image_predictor.model.cuda()
129
130
def
__init__(
131
self,
Callers
nothing calls this directly
Calls
1
cuda
Method · 0.80
Tested by
no test coverage detected