MCPcopy Create free account
hub / github.com/apache/singa / __sub__

Method __sub__

python/singa/tensor.py:679–683  ·  view source on GitHub ↗
(self, rhs)

Source from the content-addressed store, hash-verified

677 return _call_singa_func(singa.AddFloat, self.data, float(rhs))
678
679 def __sub__(self, rhs):
680 if isinstance(rhs, Tensor):
681 return from_raw_tensor(singa.__sub__(self.data, rhs.data))
682 else:
683 return _call_singa_func(singa.SubFloat, self.data, float(rhs))
684
685 def __mul__(self, rhs):
686 if isinstance(rhs, Tensor):

Callers 9

forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
_minMethod · 0.45
_maxMethod · 0.45
forwardMethod · 0.45
backwardMethod · 0.45

Calls 2

from_raw_tensorFunction · 0.70
_call_singa_funcFunction · 0.70

Tested by

no test coverage detected