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

Method __mul__

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

Source from the content-addressed store, hash-verified

683 return _call_singa_func(singa.SubFloat, self.data, float(rhs))
684
685 def __mul__(self, rhs):
686 if isinstance(rhs, Tensor):
687 return from_raw_tensor(singa.__mul__(self.data, rhs.data))
688 else:
689 return _call_singa_func(singa.MultFloat, self.data, float(rhs))
690
691 def __div__(self, rhs):
692 if isinstance(rhs, Tensor):

Callers 15

forwardMethod · 0.45
backwardMethod · 0.45
forwardMethod · 0.45
backwardMethod · 0.45
backwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
backwardMethod · 0.45
backwardMethod · 0.45
backwardMethod · 0.45
backwardMethod · 0.45

Calls 2

from_raw_tensorFunction · 0.70
_call_singa_funcFunction · 0.70

Tested by

no test coverage detected