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

Method __mul__

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

Source from the content-addressed store, hash-verified

224 return self.__elemwise__(other, lambda x, y: torch.sub(y, x))
225
226 def __mul__(self, other: Union[torch.Tensor, 'VarLenTensor', float]) -> 'VarLenTensor':
227 return self.__elemwise__(other, torch.mul)
228
229 def __rmul__(self, other: Union[torch.Tensor, 'VarLenTensor', float]) -> 'VarLenTensor':
230 return self.__elemwise__(other, torch.mul)

Callers

nothing calls this directly

Calls 1

__elemwise__Method · 0.95

Tested by

no test coverage detected