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

Method __rdiv__

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

Source from the content-addressed store, hash-verified

755 return one
756
757 def __rdiv__(self, lhs):
758 lhs = float(lhs)
759 one = Tensor(self.shape, self.device, self.dtype)
760 one.set_value(lhs)
761 one /= self
762 return one
763
764 def __rtruediv__(self, lhs):
765 lhs = float(lhs)

Callers

nothing calls this directly

Calls 2

set_valueMethod · 0.95
TensorClass · 0.70

Tested by

no test coverage detected