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

Method __truediv__

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

Source from the content-addressed store, hash-verified

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)
340
341 def __rtruediv__(self, other: Union[torch.Tensor, 'SparseTensor', float]) -> 'SparseTensor':
342 return self.__elemwise__(other, lambda x, y: torch.div(y, x))

Callers

nothing calls this directly

Calls 1

__elemwise__Method · 0.95

Tested by

no test coverage detected