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

Method __rmul__

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

Source from the content-addressed store, hash-verified

333 return self.__elemwise__(other, torch.mul)
334
335 def __rmul__(self, other: Union[torch.Tensor, 'SparseTensor', float]) -> 'SparseTensor':
336 return self.__elemwise__(other, torch.mul)
337
338 def __truediv__(self, other: Union[torch.Tensor, 'SparseTensor', float]) -> 'SparseTensor':
339 return self.__elemwise__(other, torch.div)

Callers

nothing calls this directly

Calls 1

__elemwise__Method · 0.95

Tested by

no test coverage detected