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

Method __add__

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

Source from the content-addressed store, hash-verified

671 '''
672
673 def __add__(self, rhs):
674 if isinstance(rhs, Tensor):
675 return from_raw_tensor(singa.__add__(self.data, rhs.data))
676 else:
677 return _call_singa_func(singa.AddFloat, self.data, float(rhs))
678
679 def __sub__(self, rhs):
680 if isinstance(rhs, Tensor):

Callers 15

forwardMethod · 0.45
backwardMethod · 0.45
forwardMethod · 0.45
backwardMethod · 0.45
forwardMethod · 0.45
backwardMethod · 0.45
_minMethod · 0.45
forwardMethod · 0.45
_maxMethod · 0.45
forwardMethod · 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