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

Method replace

pixal3d/modules/sparse/basic.py:172–178  ·  view source on GitHub ↗
(self, feats: torch.Tensor)

Source from the content-addressed store, hash-verified

170 return varlen_unbind(self, dim)
171
172 def replace(self, feats: torch.Tensor) -> 'VarLenTensor':
173 new_tensor = VarLenTensor(
174 feats=feats,
175 layout=self.layout,
176 )
177 new_tensor._cache = self._cache
178 return new_tensor
179
180 def to_dense(self, max_length=None) -> torch.Tensor:
181 """

Callers 15

toMethod · 0.95
typeMethod · 0.95
cpuMethod · 0.95
cudaMethod · 0.95
halfMethod · 0.95
floatMethod · 0.95
detachMethod · 0.95
reshapeMethod · 0.95
__neg__Method · 0.95
__elemwise__Method · 0.95
stdMethod · 0.95
_write_progress_fileFunction · 0.45

Calls 1

VarLenTensorClass · 0.85

Tested by

no test coverage detected