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

Method __radd__

trellis/modules/sparse/basic.py:323–324  ·  view source on GitHub ↗
(self, other: Union[torch.Tensor, 'SparseTensor', float])

Source from the content-addressed store, hash-verified

321 return self.__elemwise__(other, torch.add)
322
323 def __radd__(self, other: Union[torch.Tensor, 'SparseTensor', float]) -> 'SparseTensor':
324 return self.__elemwise__(other, torch.add)
325
326 def __sub__(self, other: Union[torch.Tensor, 'SparseTensor', float]) -> 'SparseTensor':
327 return self.__elemwise__(other, torch.sub)

Callers

nothing calls this directly

Calls 1

__elemwise__Method · 0.95

Tested by

no test coverage detected