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

Method __neg__

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

Source from the content-addressed store, hash-verified

196 return dense, mask
197
198 def __neg__(self) -> 'VarLenTensor':
199 return self.replace(-self.feats)
200
201 def __elemwise__(self, other: Union[torch.Tensor, 'VarLenTensor'], op: callable) -> 'VarLenTensor':
202 if isinstance(other, torch.Tensor):

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.95

Tested by

no test coverage detected