MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _mean

Function _mean

imperative/python/megengine/utils/module_stats.py:175–177  ·  view source on GitHub ↗
(inp)

Source from the content-addressed store, hash-verified

173
174
175def _mean(inp):
176 inp = Tensor(inp).astype(np.float32)
177 return F.mean(inp).numpy()
178
179
180def _std(inp):

Callers 2

get_param_statsFunction · 0.85
get_activation_statsFunction · 0.85

Calls 4

TensorClass · 0.50
astypeMethod · 0.45
numpyMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected