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

Method __add__

examples/model_selection/Trails/singa_pkg_code/tensor.py:642–646  ·  view source on GitHub ↗
(self, rhs)

Source from the content-addressed store, hash-verified

640 '''
641
642 def __add__(self, rhs):
643 if isinstance(rhs, Tensor):
644 return from_raw_tensor(singa.__add__(self.data, rhs.data))
645 else:
646 return _call_singa_func(singa.AddFloat, self.data, rhs)
647
648 def __sub__(self, rhs):
649 if isinstance(rhs, Tensor):

Callers

nothing calls this directly

Calls 2

from_raw_tensorFunction · 0.70
_call_singa_funcFunction · 0.70

Tested by

no test coverage detected