Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ test_rmul
Method
test_rmul
test/python/test_tensor.py:153–157 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
151
self.assertEqual(tensor.average(y), 0.)
152
153
def
test_rmul(self):
154
x = tensor.Tensor((3,))
155
x.set_value(1)
156
y = 2 * x
157
self.assertEqual(tensor.average(y), 2.)
158
159
def
test_rdiv(self):
160
x = tensor.Tensor((3,))
Callers
nothing calls this directly
Calls
2
set_value
Method · 0.95
Tensor
Method · 0.80
Tested by
no test coverage detected