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

Method __add__

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

Source from the content-addressed store, hash-verified

318 return new_tensor
319
320 def __add__(self, other: Union[torch.Tensor, 'SparseTensor', float]) -> 'SparseTensor':
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)

Callers

nothing calls this directly

Calls 1

__elemwise__Method · 0.95

Tested by

no test coverage detected