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

Method __le__

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

Source from the content-addressed store, hash-verified

708 return _call_singa_func(singa.LTFloat, self.data, float(rhs))
709
710 def __le__(self, rhs):
711 if isinstance(rhs, Tensor):
712 return from_raw_tensor(singa.__le__(self.data, rhs.data))
713 else:
714 return _call_singa_func(singa.LEFloat, self.data, float(rhs))
715
716 def __gt__(self, rhs):
717 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