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

Method __div__

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

Source from the content-addressed store, hash-verified

689 return _call_singa_func(singa.MultFloat, self.data, float(rhs))
690
691 def __div__(self, rhs):
692 if isinstance(rhs, Tensor):
693 return from_raw_tensor(singa.__div__(self.data, rhs.data))
694 else:
695 return _call_singa_func(singa.DivFloat, self.data, float(rhs))
696
697 def __truediv__(self, rhs):
698 return self.__div__(rhs)

Callers 9

__truediv__Method · 0.95
__floordiv__Method · 0.95
applyMethod · 0.45
applyMethod · 0.45
backwardMethod · 0.45
backwardMethod · 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