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

Method __sub__

pixal3d/modules/sparse/basic.py:220–221  ·  view source on GitHub ↗
(self, other: Union[torch.Tensor, 'VarLenTensor', float])

Source from the content-addressed store, hash-verified

218 return self.__elemwise__(other, torch.add)
219
220 def __sub__(self, other: Union[torch.Tensor, 'VarLenTensor', float]) -> 'VarLenTensor':
221 return self.__elemwise__(other, torch.sub)
222
223 def __rsub__(self, other: Union[torch.Tensor, 'VarLenTensor', float]) -> 'VarLenTensor':
224 return self.__elemwise__(other, lambda x, y: torch.sub(y, x))

Callers

nothing calls this directly

Calls 1

__elemwise__Method · 0.95

Tested by

no test coverage detected