Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ __rtruediv__
Method
__rtruediv__
python/singa/tensor.py:764–769 ·
view source on GitHub ↗
(self, lhs)
Source
from the content-addressed store, hash-verified
762
return
one
763
764
def
__rtruediv__(self, lhs):
765
lhs = float(lhs)
766
one = Tensor(self.shape, self.device, self.dtype)
767
one.set_value(lhs)
768
one /= self
769
return
one
770
771
dtype_name = {
772
float16:
"float16"
,
Callers
nothing calls this directly
Calls
2
set_value
Method · 0.95
Tensor
Class · 0.70
Tested by
no test coverage detected