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

Method __rtruediv__

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

Source from the content-addressed store, hash-verified

738 return one
739
740 def __rtruediv__(self, lhs):
741 lhs = float(lhs)
742 one = Tensor(self.shape, self.device, self.dtype)
743 one.set_value(lhs)
744 one /= self
745 return one
746
747 def __repr__(self):
748 return np.array2string(to_numpy(self))

Callers

nothing calls this directly

Calls 2

set_valueMethod · 0.95
TensorClass · 0.70

Tested by

no test coverage detected