Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ __rdiv__
Method
__rdiv__
examples/model_selection/Trails/singa_pkg_code/tensor.py:733–738 ·
view source on GitHub ↗
(self, lhs)
Source
from the content-addressed store, hash-verified
731
return
one
732
733
def
__rdiv__(self, lhs):
734
lhs = float(lhs)
735
one = Tensor(self.shape, self.device, self.dtype)
736
one.set_value(lhs)
737
one /= self
738
return
one
739
740
def
__rtruediv__(self, lhs):
741
lhs = float(lhs)
Callers
nothing calls this directly
Calls
2
set_value
Method · 0.95
Tensor
Class · 0.70
Tested by
no test coverage detected