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

Method __eq__

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

Source from the content-addressed store, hash-verified

726 return _call_singa_func(singa.GEFloat, self.data, float(rhs))
727
728 def __eq__(self, rhs):
729 if isinstance(rhs, Tensor):
730 return from_raw_tensor(singa.__eq__(self.data, rhs.data))
731 elif rhs is None:
732 return False
733 else:
734 return _call_singa_func(singa.EQFloat, self.data, float(rhs))
735
736 def __radd__(self, lhs):
737 lhs = float(lhs)

Callers 1

forwardMethod · 0.45

Calls 2

from_raw_tensorFunction · 0.70
_call_singa_funcFunction · 0.70

Tested by

no test coverage detected