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

Method __eq__

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

Source from the content-addressed store, hash-verified

702 return _call_singa_func(singa.GEFloat, self.data, rhs)
703
704 def __eq__(self, rhs):
705 if isinstance(rhs, Tensor):
706 return from_raw_tensor(singa.__eq__(self.data, rhs.data))
707 elif rhs is None:
708 return False
709 else:
710 return _call_singa_func(singa.EQFloat, self.data, rhs)
711
712 def __radd__(self, lhs):
713 lhs = float(lhs)

Callers

nothing calls this directly

Calls 2

from_raw_tensorFunction · 0.70
_call_singa_funcFunction · 0.70

Tested by

no test coverage detected