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

Method __neg__

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

Source from the content-addressed store, hash-verified

300 return new_cache
301
302 def __neg__(self) -> 'SparseTensor':
303 return self.replace(-self.feats)
304
305 def __elemwise__(self, other: Union[torch.Tensor, 'SparseTensor'], op: callable) -> 'SparseTensor':
306 if isinstance(other, torch.Tensor):

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.95

Tested by

no test coverage detected