MCPcopy 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
170def _test_values(shape):
171 return np.reshape(np.cumsum(np.ones(shape)), newshape=shape)
172
173
174class MeanTest(test.TestCase):

Callers 9

testUnweightedMethod · 0.70
test1x1x1WeightedMethod · 0.70
test1x1xNWeightedMethod · 0.70
test1xNx1WeightedMethod · 0.70
test1xNxNWeightedMethod · 0.70
testNx1x1WeightedMethod · 0.70
testNx1xNWeightedMethod · 0.70
testNxNxNWeightedMethod · 0.70
testInvalidWeightsMethod · 0.70

Calls 2

reshapeMethod · 0.80
onesMethod · 0.80

Tested by

no test coverage detected