MCPcopy Create free account
hub / github.com/NVIDIA/MinkowskiEngine / __sub__

Method __sub__

MinkowskiEngine/MinkowskiTensor.py:558–565  ·  view source on GitHub ↗

r""" Subtract the feature of the other :attr:`MinkowskiEngine.SparseTensor` or a :attr:`torch.Tensor` from its corresponding feature element-wise. For coordinates that exist on one sparse tensor but not on the other, features of the counterpart that do not exist will

(self, other)

Source from the content-addressed store, hash-verified

556 return self._binary_functor(other, lambda x, y: x + y)
557
558 def __sub__(self, other):
559 r"""
560 Subtract the feature of the other :attr:`MinkowskiEngine.SparseTensor`
561 or a :attr:`torch.Tensor` from its corresponding feature element-wise.
562 For coordinates that exist on one sparse tensor but not on the other,
563 features of the counterpart that do not exist will be set to 0.
564 """
565 return self._binary_functor(other, lambda x, y: x - y)
566
567 def __mul__(self, other):
568 r"""

Callers

nothing calls this directly

Calls 1

_binary_functorMethod · 0.95

Tested by

no test coverage detected