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

Method __add__

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

Source from the content-addressed store, hash-verified

212 return new_tensor
213
214 def __add__(self, other: Union[torch.Tensor, 'VarLenTensor', float]) -> 'VarLenTensor':
215 return self.__elemwise__(other, torch.add)
216
217 def __radd__(self, other: Union[torch.Tensor, 'VarLenTensor', float]) -> 'VarLenTensor':
218 return self.__elemwise__(other, torch.add)

Callers

nothing calls this directly

Calls 1

__elemwise__Method · 0.95

Tested by

no test coverage detected