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

Method __rmul__

examples/model_selection/Trails/singa_pkg_code/tensor.py:726–731  ·  view source on GitHub ↗
(self, lhs)

Source from the content-addressed store, hash-verified

724 return one
725
726 def __rmul__(self, lhs):
727 lhs = float(lhs)
728 one = Tensor(self.shape, self.device, self.dtype)
729 one.set_value(lhs)
730 one *= self
731 return one
732
733 def __rdiv__(self, lhs):
734 lhs = float(lhs)

Callers

nothing calls this directly

Calls 2

set_valueMethod · 0.95
TensorClass · 0.70

Tested by

no test coverage detected