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

Method __rmul__

python/singa/tensor.py:750–755  ·  view source on GitHub ↗
(self, lhs)

Source from the content-addressed store, hash-verified

748 return one
749
750 def __rmul__(self, lhs):
751 lhs = float(lhs)
752 one = Tensor(self.shape, self.device, self.dtype)
753 one.set_value(lhs)
754 one *= self
755 return one
756
757 def __rdiv__(self, lhs):
758 lhs = float(lhs)

Callers

nothing calls this directly

Calls 2

set_valueMethod · 0.95
TensorClass · 0.70

Tested by

no test coverage detected