MCPcopy
hub / github.com/TencentARC/Pixal3D / detach

Method detach

pixal3d/modules/sparse/basic.py:626–629  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

624 return self.replace(new_feats)
625
626 def detach(self) -> 'SparseTensor':
627 new_coords = self.coords.detach()
628 new_feats = self.feats.detach()
629 return self.replace(new_feats, new_coords)
630
631 def reshape(self, *shape) -> 'SparseTensor':
632 new_feats = self.feats.reshape(self.feats.shape[0], *shape)

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.95
detachMethod · 0.45

Tested by

no test coverage detected