Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ _test_values
Function
_test_values
tensorflow/python/kernel_tests/metrics_test.py:170–171 ·
view source on GitHub ↗
(shape)
Source
from the content-addressed store, hash-verified
168
169
170
def
_test_values(shape):
171
return
np.reshape(np.cumsum(np.ones(shape)), newshape=shape)
172
173
174
class
MeanTest(test.TestCase):
Callers
9
testUnweighted
Method · 0.70
test1x1x1Weighted
Method · 0.70
test1x1xNWeighted
Method · 0.70
test1xNx1Weighted
Method · 0.70
test1xNxNWeighted
Method · 0.70
testNx1x1Weighted
Method · 0.70
testNx1xNWeighted
Method · 0.70
testNxNxNWeighted
Method · 0.70
testInvalidWeights
Method · 0.70
Calls
2
reshape
Method · 0.80
ones
Method · 0.80
Tested by
no test coverage detected