MCPcopy Index your code
hub / github.com/microsoft/TRELLIS / cpu

Method cpu

trellis/modules/sparse/basic.py:207–210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

205 return self.replace(new_feats)
206
207 def cpu(self) -> 'SparseTensor':
208 new_feats = self.feats.cpu()
209 new_coords = self.coords.cpu()
210 return self.replace(new_feats, new_coords)
211
212 def cuda(self) -> 'SparseTensor':
213 new_feats = self.feats.cuda()

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.95

Tested by

no test coverage detected