Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ __rsub__
Method
__rsub__
python/singa/tensor.py:743–748 ·
view source on GitHub ↗
(self, lhs)
Source
from the content-addressed store, hash-verified
741
return
one
742
743
def
__rsub__(self, lhs):
744
lhs = float(lhs)
745
one = Tensor(self.shape, self.device, self.dtype)
746
one.set_value(lhs)
747
one -= self
748
return
one
749
750
def
__rmul__(self, lhs):
751
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